ygini/ObjectiveREST — Issue #17: Content Type
Author: ygini
Created: 2011-11-29 22:42:05+00:00
State: open

Fix the different method to clarify the usage of Content-Type and Accept HTTP headers.

- Content-Type must be used to specify in which type the body of the [request | response] is encoded
- Accept must be use to specify to the [server | client] which kind of Content-Type is supported for the communication

In order of priority, we support :

- application/x-bplist
- application/x-plist
- application/json

Subject to discussion :
- text/html: If we have the time, we could embed a HTML backend to our REST interface to allow developer to interact directly with the service in debug mode