[occi-wg] JSON Rendering

Michael Behrens michael.behrens at r2ad.com
Thu Feb 23 23:36:44 EST 2012


+1 simple is good
With regard to the get request, is it legal to specify the accept content type using wildcards in this manner: "application/occi-*", or would we have to just add multiple entries 
on the line?

Ralf Nyren wrote:
> On Thu, 23 Feb 2012 07:52:09 -0700, Gary Mazz<garymazzaferro at gmail.com>
> wrote:
>
>> There is nothing technically "wrong" with it, it just sucks as a client
>> to figure out if you have an array or resource. CDMI had the same issue
>> and decided for the array of one element....
> hmm, so you are saying your client immediately forgets what it asked about
> in the request and must figure that out from the format of the response?
>
> I suppose that is a HTTP-ish way if implementing things, yes.
>
> But then it is better to fix this with proper media-types for each
> response type as previously proposed by Florian.
>
> E.g.:
> Content-Type: application/occi-entity+json
> Content-Type: application/occi-collection+json
> Content-Type: application/occi-discovery+json
>
> regards, Ralf
>
> _______________________________________________
> occi-wg mailing list
> occi-wg at ogf.org
> https://www.ogf.org/mailman/listinfo/occi-wg
>



More information about the occi-wg mailing list