DS.JSONAPISerializer#_normalizeRelationshipDataHelper()

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

DS.JSONAPISerializer#_normalizeDocumentHelper()

_normalizeDocumentHelper (documentHash) Objectprivate Defined in addon/serializers/json-api.js:103 Parameters: documentHash Object Returns: 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#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#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#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#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#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

DS.JSONAPISerializer#payloadKeyFromModelName()

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