September 2017
Intermediate to advanced
450 pages
11h 24m
English
Our upgrades to our /middleware/rest.js middleware include providing configuration options to serialize our JSON API responses. There are many options available in the JSON API specification, including ways to provide metadata and links to resources and related data. There are also several configuration options to format purposes, such as how attributes should serialized. These properties can be applied to any level of hierarchy in the model, including relationships:
| Serializer property | Description |
| id | The identifier for the resource; defaults to id |
| attributes | The array of attributes for the resource |
| included | Checks whether relationships are included as a compound document; defaults to true |
| ref | Defines object as ... |
Read now
Unlock full access