Let's define what kind of strategy we want to follow for implementing a RESTful API:
- Full JSON approach (all in the JSON, less standard, quite more flexible)
- HTTP based approach (some in the HTTP headers, hard to implement, more standard)
- Some other else...