DocJSON – JSON HyperMedia Documents

A DocJSON document consists of standard JSON with the addition of a set of hypermedia controls that are used to express the actions that may be taken. DocJSON is a flexible document format that does not impose any structural restrictions either on the data representation style or on the layout of hypermedia controls used within […]

JSON API

{ “links”: { “posts.author”: { “href”: “http://example.com/people/{posts.author}”, “type”: “people” }, “posts.comments”: { “href”: “http://example.com/comments/{posts.comments}”, “type”: “comments” } } “posts”: [{ “id”: “1”, “title”: “Rails is Omakase”, “links”: { “author”: “9”, “comments”: [ “1”, “2”, “3” ] }, { “id”: “2”, “title”: “The Parley Letter”, “links”: { “author”: “9”, “comments”: [ “4”, “5” ] }, { […]