Live data from Hacker News

The Restful CookBook

restcookbook.com

51–53 of 53 posts

Re: The Restful CookBook

#51
post #5

While some of the tips are useful, I'd much rather see them written with JSON rather than XML. JSON has long been an industry standard. XML is bloated, almost no one uses it anymore. http://restcookbook.com/Mediatypes/json/ says "There is no predefined way to deal with link discovery in JSON". I'm surprised it doesn't even mention JSON Schema ( http://json-schema.org/ ) or JSON API ( http://jsonapi.org/ ), which are…

> which are not official standards It depends on what you mean by 'official standards.' We've registered JSON API with IANA, so it's a standard media type, but there hasn't been an RFC yet, as we're basically just finalizing the spec now. (We're in a week-long period of just textual review, conceptually and structurally, it's done.) And given that AMS is going into Rails and Ember Data will default to JSON API out of…

Great to hear that Steve!

We're actually moving towards the JSON API ~standard~ format and hope it becomes the standard that gets widely used.

Re: The Restful CookBook

#52
post #49
post #5

While some of the tips are useful, I'd much rather see them written with JSON rather than XML. JSON has long been an industry standard. XML is bloated, almost no one uses it anymore. http://restcookbook.com/Mediatypes/json/ says "There is no predefined way to deal with link discovery in JSON". I'm surprised it doesn't even mention JSON Schema ( http://json-schema.org/ ) or JSON API ( http://jsonapi.org/ ), which are…

I personally find XML more readable than JSON.

I think a huge drawback of XML is it can't differentiate between an element and an array of one. So to "read" it correctly you should read a schema, too.

Re: The Restful CookBook

#53

Earlier quoted context omitted.

> which are not official standards It depends on what you mean by 'official standards.' We've registered JSON API with IANA, so it's a standard media type, but there hasn't been an RFC yet, as we're basically just finalizing the spec now. (We're in a week-long period of just textual review, conceptually and structurally, it's done.) And given that AMS is going into Rails and Ember Data will default to JSON API out of…

Great to hear that Steve! We're actually moving towards the JSON API ~standard~ format and hope it becomes the standard that gets widely used.

Neat! :) And thanks.
Post reply on HN