Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save visualjeff/0d081b1e80fd4345bb44c552019ef469 to your computer and use it in GitHub Desktop.
Save visualjeff/0d081b1e80fd4345bb44c552019ef469 to your computer and use it in GitHub Desktop.
JSONAPI Notes
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