Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/haydn/json-api-store. An isomorphic JavaScript library that acts as an in memory data store for JSO particlesystem.com/json-api-store
json-api
Something went wrong. Try again.
1.4 kB · 79 lines
JSON
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ "data": { "type": "products", "id": "1", "attributes": { "title": "A Book", "description": "A really good book." }, "relationships": { "categories": { "data": [ { "type": "categories", "id": "1" }, { "type": "categories", "id": "2" }, { "type": "categories", "id": "3" } ] }, "comments": { "data": [ { "type": "comments", "id": "1" } ] }, "related": { "data": [ { "type": "products", "id": "2" } ] } } }, "included": [ { "type": "categories", "id": "1", "attributes": { "name": "Books" } }, { "type": "categories", "id": "2", "attributes": { "name": "Popular" } }, { "type": "categories", "id": "3", "attributes": { "name": "New" } }, { "type": "comments", "id": "1", "attributes": { "body": "I love this book!" } }, { "type": "products", "id": "2", "attributes": { "title": "Another Book" }, "relationships": { "categories": { "data": [ { "type": "categories", "id": "1" } ] }, "comments": { "data": [] }, "related": { "data": [] } } } ]}