DS.JSONAPISerializer#_normalizeResponse()

_normalizeResponse (store, primaryModelClass, payload, id, requestType, isSingle) Objectprivate Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:227 Parameters: store DS.Store primaryModelClass DS.Model payload Object id String|Number requestType String isSingle Boolean Returns: Object JSON-API Document

DS.JSONAPISerializer#_normalizeRelationshipDataHelper()

_normalizeRelationshipDataHelper (relationshipDataHash) Objectprivate Defined in addon/serializers/json-api.js:138 Parameters: relationshipDataHash Object Returns: Object

DS.JSONAPISerializer#serializeAttribute()

serializeAttribute (snapshot, json, key, attribute) Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:487 Parameters: snapshot DS.Snapshot json Object key String attribute Object

DS.JSONAPISerializer#serializeHasMany()

serializeHasMany (snapshot, json, relationship) Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:567 Parameters: snapshot DS.Snapshot json Object relationship Object

DS.JSONAPISerializer#_extractType()

_extractType (modelClass, resourceHash) Stringprivate Defined in addon/serializers/json-api.js:323 Parameters: modelClass DS.Model resourceHash Object Returns: String

DS.JSONAPISerializer#serializeBelongsTo()

serializeBelongsTo (snapshot, json, relationship) Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:516 Parameters: snapshot DS.Snapshot json Object relationship Object

DS.JSONAPISerializer#serialize()

serialize (snapshot, options) Object Inherited from DS.JSONSerializer but overwritten in addon/serializers/json-api.js:457 Parameters: snapshot DS.Snapshot options Object Returns: Object json

DS.JSONAPISerializer#pushPayload()

pushPayload (store, payload) Defined in addon/serializers/json-api.js:213 Parameters: store DS.Store payload Object

DS.JSONAPISerializer#payloadKeyFromModelName()

payloadKeyFromModelName (modelName) String Defined in addon/serializers/json-api.js:360 Parameters: modelName String Returns: String

DS.JSONAPISerializer#payloadTypeFromModelName()

payloadTypeFromModelName (modelname) Stringpublic Defined in addon/serializers/json-api.js:678 payloadTypeFromModelName can be used to change the mapping for the type in the payload, taken from the model name. Say your API namespaces the type of a model and expects the following payload when you update the post model: // POST /api/posts/1 { "data": { "id": 1, "type": "api::v1::post" } } By overwriting payloadTypeFromModelName you can specify that the namespaces model name for t