API Golden Rules
false as "0", so you want to typecast them.$hidden array then OOPS!/users/id/5/active/true. Your API does not need to be SEO optimised.?format=xml is stupid, use an Accept: application/xml header. I added this to the CodeIgniter Rest Server once for lazy people, and now people think it's a thing. It's not./me/friends and /users/5/friends, or embeded data./users/X,Y,Z in a "users" array works nicely.application/x-www-form-urlencoded just for $_POST['foo'] is no good, especially when any decent framework (like Laravel 4) will allow Input::json('foo') anyway.application/x-www-form-urlencoded with a json={} parameter. If you think that is a good idea it's time you re-train as a yoga teacher or something, the stress is effecting your judgement.Cache-Control header let's people know if they can (or should) cache stuff. If other devs ignore those headers then it's their problem."paging" element, which has a "next" or "previous" URL if there are more on either side.v1/ subfolder into your app/controllers or whatever might seem like a real clever way of doing things, but how are you gonna merge v1.0 tweaks with v1.1 and v2.0?application/vnd.com.example-v1.0+json. Gross? Whatever.