_normalizeRelationshipDataHelper (relationshipDataHash) Objectprivate Defined in addon/serializers/json-api.js:138 Parameters: relationshipDataHash Object Returns: Object
_normalizeDocumentHelper (documentHash) Objectprivate Defined in addon/serializers/json-api.js:103 Parameters: documentHash Object Returns: Object
_extractType (modelClass, resourceHash) Stringprivate Defined in addon/serializers/json-api.js:323 Parameters: modelClass DS.Model resourceHash Object Returns: String
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
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
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
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
pushPayload (store, payload) Defined in addon/serializers/json-api.js:213 Parameters: store DS.Store payload Object
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
payloadKeyFromModelName (modelName) String Defined in addon/serializers/json-api.js:360 Parameters: modelName String Returns: String
Page 102 of 136