Skip to content

Instantly share code, notes, and snippets.

@locks
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save locks/adbded896e2cfceed3c7 to your computer and use it in GitHub Desktop.
Save locks/adbded896e2cfceed3c7 to your computer and use it in GitHub Desktop.
Writing a custom Ember Data adapter

Serializer

  • expected payload
  • normalizeX hooks

Adapter

  • http methods (find, etc)
  • createRecord, updateRecord
  • buildURL

Q&A

10:41 AM I created a Serializer and overrode normalize and normalizePayload. When I fetch a model from my adapter, only my normalizePayload gets called. Should my normalize not be getting called too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment