You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devicemap.apache.org by Bertrand Delacretaz <bd...@apache.org> on 2013/05/13 14:39:27 UTC

No keys for empty values (was: Java webservice)

Hi,

On Mon, May 13, 2013 at 8:40 AM, eberhard speer jr. <se...@ducis.net> wrote:
> ...2) response
> Judging from the feedback I got, 'clients' prefer to get only those
> key-value pairs for which a 'real', i.e. non-empty, non-default, value
> exists.
> If a key is not present in a response, the client is *knows* it's
> value and depending on their requirements can then implement their own
> suitable defaults....

I like the idea of omitting keys which have no value in the response.

And maybe include some service metadata in the response as well,
either X-DeviceMap-* keys or a distinct deviceMapMetadata object in
the JSON response.

-Bertrand