September 2017
Intermediate to advanced
450 pages
11h 24m
English
The format for our JSON API requests from http://localhost:3000/api/posts will now contain a fully embedded user object, but with an ID that matches an independent user record:
"data": [ { "type": "posts", "id": "596aafb6aede86ed94d5261d", "attributes": { "title": "dolores earum et", "content": "Tempora qui est sed minima cupiditate...", "published": "2016-08-09T13:56:03.378Z", "html": "<p>Tempora qui est sed minima cupiditate...." }, "relationships": { "author": { "data": { "type": "users", "id": "596aafb6aede86ed94d5261c" } } } },..."included": [ { "type": "users", "id": "596aafb6aede86ed94d5261c", "attributes": { "first-name": "Merl", "last-name": "Bahringer", "email": "Jaime_Herman@hotmail.com" } },...
The JSON API response ...
Read now
Unlock full access