I -think- and -assume- that a Content-Type header (application/json
for json, and application/atom
+xml;type=entry for atom) is intended to indicate the input format
type ...
But since this isn't clearly defined in the spec, i can't say for
sure. Hopefully the spec will be updated to clarify this soon.
-- Chris
On Jul 17, 2008, at 7:09 PM, Tamir wrote:
>
> RESTful API Specification says that the container must support dual
> representations for each resource. (Atom & JSON). What about HTTP
> method such as POST, PUT or DELETE that change data?
> The single example i found for such a request was an example about
> Batching:
> --------------------------------------
> POST /batch-proxy HTTP/1.1
> ...
> POST /people/@me/@all HTTP/1.1
> ...
> ...representation of new Person elided...
> --------------------------------------
>
> What is the format of the Person MAY be? Atom, JSON or both?
>
> Cheers
>
> Tamir Zaslavsky
>
>