Skip to content
Colin Harrington edited this page Aug 23, 2016 · 1 revision

#Incoming JSONAPI #Support for binding entities to incoming JSON API structure

For example:

POST /photos HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
  "data": {
    "type": "photos",
    "attributes": {
      "title": "Ember Hamster",
      "src": "http://example.com/images/productivity.png"
    },
    "relationships": {
      "photographer": {
        "data": { "type": "people", "id": "9" }
      }
    }
  }
}

would create a resource per the spec http://jsonapi.org/format/#crud-creating

#Functional tests showing the content negotiation Including examples

#Controller Layer Support

  • Utilizing RestfulController or creating a JsonApiController that handles the spec.
  • Needs to be explored

#Documentation

  • How to use the JSONAPI support
  • Helpful example to get started
Clone this wiki locally