Serialize data - GradedJestRisk/web-training GitHub Wiki
Choices:
- XML
- JSON
- JSON API: spec
Its basic structure is the following
{
"type": "A",
"id": "1",
"attributes": {
"A": "B"
},
"relationships": {
"C": {
"data": { "type": "D", "id": "2" }
}
},
"links": {
"self": "URL"
}
}
Example here Further: hypermedia API