DS.ServerError

DS.ServerError Class Defined in: addon/adapters/errors.js:161 Module: ember-data

DS.Serializer#store

store{DS.Store}public Defined in addon/serializer.js:29 The store property is the application's store that contains all records. It's injected as a service. It can be used to push records from a non flat data structure server response.

DS.Serializer#serialize()

serialize (record, options) Object Defined in addon/serializer.js:57 The serialize method is used when a record is saved in order to convert the record into the form that your external data source expects. serialize takes an optional options hash with a single option: includeId: If this is true, serialize should include the ID in the serialized object it builds. Parameters: record DS.Model options [Object] Returns: Object

DS.Serializer#normalizeResponse()

normalizeResponse (store, primaryModelClass, payload, id, requestType) Object Defined in addon/serializer.js:40 Available since 1.13.0 The normalizeResponse method is used to normalize a payload from the server to a JSON-API Document. http://jsonapi.org/format/#document-structure Parameters: store DS.Store primaryModelClass DS.Model payload Object id String|Number requestType String Returns: Object JSON-API Document

DS.Serializer#normalize()

normalize (typeClass, hash) Object Defined in addon/serializer.js:73 The normalize method is used to convert a payload received from your external data source into the normalized form store.push() expects. You should override this method, munge the hash and return the normalized payload. Parameters: typeClass DS.Model hash Object Returns: Object

DS.Serializer

DS.Serializer Class Extends: Ember.Object Defined in: addon/serializer.js:7 Module: ember-data DS.Serializer is an abstract base class that you should override in your application to customize it for your backend. The minimum set of methods that you should implement is: normalizeResponse() serialize() And you can optionally override the following methods: normalize() For an example implementation, see DS.JSONSerializer, the included JSON serializer.

DS.RootState

DS.RootState Class Defined in: addon/-private/system/model/states.js:12 Module: ember-data State Each record has a currentState property that explicitly tracks what state a record is in at any given time. For instance, if a record is newly created and has not yet been sent to the adapter to be saved, it would be in the root.loaded.created.uncommitted state. If a record has had local modifications made to it that are in the process of being saved, the record would be in the root.loaded.upda

DS.RESTSerializer#_normalizeArray()

_normalizeArray (store, modelName, arrayHash, prop) Objectprivate Defined in addon/serializers/rest.js:168 Normalizes an array of resource payloads and returns a JSON-API Document with primary data and, if any, included data as { data, included }. Parameters: store DS.Store modelName String arrayHash Object prop String Returns: Object

DS.RESTSerializer#serializePolymorphicType()

serializePolymorphicType (snapshot, json, relationship) Inherited from DS.JSONSerializer but overwritten in addon/serializers/rest.js:742 You can use this method to customize how polymorphic objects are serialized. By default the REST Serializer creates the key by appending Type to the attribute and value from the model's camelcased model name. Parameters: snapshot DS.Snapshot json Object relationship Object

DS.RESTSerializer#serializeIntoHash()

serializeIntoHash (hash, typeClass, snapshot, options) Inherited from DS.JSONSerializer but overwritten in addon/serializers/rest.js:663 You can use this method to customize the root keys serialized into the JSON. The hash property should be modified by reference (possibly using something like _.extend) By default the REST Serializer sends the modelName of a model, which is a camelized version of the name. For example, your server may expect underscored root objects. app/serializers/applic