Created
July 30, 2016 22:16
-
-
Save visualjeff/0d081b1e80fd4345bb44c552019ef469 to your computer and use it in GitHub Desktop.
JSONAPI Notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JSONAPI - Kabab case only. No camel case | |
data | |
type (plural) | |
id (string of a number) | |
attributes (payload) | |
relationships (minial JSONAPI form inside. Type (can be singular or plural) and id. can also be an Array) | |
links (optional but ember-data does support links) | |
included (optional. Type, id and attributes. Always an Array) | |
==================================================================== | |
JSONAPI has supports sorting, pagination and filtering | |
and has a recommended way to do it | |
You'll need to use the "query method" from the Ember-Data side. | |
findAll or findRecord make it hard. | |
======================================================================== |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment