DS.Adapter DS.Serializer • Are relationships saved in the parent or the child? • What payloads are sent to what URLs? • What actions map to what HTTP verbs? • What is the name of the primary key? • What are the names of attributes? • Are objects embedded or referred to by ID?
// GET /comments/789 { "comment": { "id": 789, "title": "Browser question", "body": "the question, \"What browser am I using, and why does it matter?\"", "user": { "firstName": "Jeff", "lastName": "Chang" } } }
// PUT /comments/789 { "comment": { "id": 789, "title": "Browser questions", "body": "the question, \"What browser am I using, and why does it matter?\"", "user": { "firstName": "Jeffrey", "lastName": "Chang" } } } Embedded