Tested in PhantomJS 2.1.1 (Windows 8 0.0.0) on Mon Feb 13 2017

Fold | Unfold53 specs, 0 failed, 1 pending
DSJsonApiAdapter.create(resourceConfig, attrs, options) Adapter CREATE
should make a POST request, and NOT include id when not specified by client
should make a POST request, and INCLUDE client id when specified by client
should make a POST request, to create single object
should make a POST request, to create single object and NOT cache response
should make a POST request, to create multiple data objects
DSJsonApiAdapter.create(resourceConfig, attrs, options) DS Create:
Should make a POST request and send relationship data
DSJsonApiAdapter.destroy(resourceConfig, id, options)
should make a DELETE request, with 200 OK response, see : http://jsonapi.org/format/#crud-deleting
should make a DELETE request, with 204 OK NoContent response
Test Examples oneToMany Example
Should Deserialize the sample oneToMany Json
Test Examples manyToMany Example
Should Deserialize the sample manyToMany Json
find DSJsonAdapter.find(resourceConfig, id, options)
should make a GET request
should allow overriding urlPath
should use default configs
should log errors
should make a GET request and correctly deserialize returned included data
should make a GET request and correctly process and inject returned included data
should update data store when data is updated on the server after making a GET request
should make a GET request and correctly store JsonApi Request links in meta data
find DSJsonAdapter.find(resourceConfig, id, options) Null Result Handling
should break relationshiplink when GET request returns a NULL in respose to a request for a "toOne" related object
find DS#find
should find data using adapter and CACHE
should find data using adapter and NOT CACHE
jsonAPI Serialization, Primay Keys
should use a default primary key of "id" when deserializing model, when not specifed in datastore configuration
should use a "Named" primary key when specifed in datastore configuration
jsonAPI Serialization, Parent Keys
should extract and set ParentId from JsonApi self link and set js-data belongsTo relationship local key
should extract and set ParentId from JsonApi self link and set js-data belongsTo relationship local key, when resource endpoint configured
jsonAPI Serialization, Error Response
should deserialize Json ErrorResponse
jsonAPI Serialization, Attributes Values
should deserialize Json Data when attributes contain null values
sould not serialize js-data localKey or LocalKeys into attribute values
jsonAPI Serialization, Attribute Changes
should serialize changes to Data correctly include; Updated, Added attributes and removed attributes with a value of null
jsonAPI Serialization, To Many Relationships:
should deserialize empty to many relationships and js-data should update to remove previous existing relationship
jsonAPI Serialization, To One Relationships:
should break js-data existing relationship, (desired behaviour)
should deserialize empty(null) to one relationships and js-data should update to remove previous existing relationship (TODO Issue #10)
jsonAPI Serialization, Meta Data:
should not serialize meta data
jsonAPI Serialization, Fallback behaviour when not JsonApi
should fall back to Non-JsonApi serialization when no Json Api content type detected, "Content-Type:application/vnd.api + json"
should still use Json Api adapter when, "Content-Type:application/vnd.api + json"
jsonAPI Serialization, Relationships Identified correctly when types contain mixed case and/or no standard java names
Should identify and load types that contain nonstandard java characters
Resource.loadRelations(id, [relations],[options]) WITH belongsTo (METHOD#1) loadRelations
should make a GET request to load related "oneToMany" data
should make a GET request to load related "parent/belongsTo" relation data
Resource.loadRelations(id, [relations],[options]) WITH belongsTo (METHOD#2) findAll
should make a GET request to load related data, using findAll
Resource.loadRelations(id, [relations],[options]) WITH belongsTo (METHOD#3) findRelated
should make a GET request to load related Post data, using findRelated
Resource.loadRelations(id, [relations],[options]) **WITHOUT** belongsTo (METHOD#1) loadRelations
should make a GET request to load related "oneToMany" data
should make a GET request to load related "hasOne foreignKey" relation data
should make a GET request to load related "hasOne localKey" relation data
should make a GET request to load related "hasOne" relation null data
Update Tests DSJsonAdapter.update(resourceConfig, id, attrs, options)
should make a PATCH request
should make a PUT request
should handle server 204 NoContent reponse correctly when PUT (update) data is stored with out any changes on the server. So servers may chose to return no content
should handle server 204 NoContent reponse correctly when PATCH (update) data is stored with out any changes on the server. So servers may chose to return no content
should fail update when supplied id and object primary key differ
Update Tests DS#Save
should save data to adapter, WITHOUT relationships
should save data to adapter, WITH relationships
Update Tests DS#updateAll (Create Multiple)
should make a POST request with an array
should make a PATCH an empty array