Startouf
11/30/2017 - 10:47 PM

Sideposting with json:api, with `method` allowing to desambiguate operations

Sideposting with json:api, with method allowing to desambiguate operations

{
  "data": { 
    "type": "profile", 
    "relationships": {
      "educations": {
        "data": [
          {
            "type": "profile/education",
            "temp-id": 0,
            "method": "create"
          }
        ]
      }
    }
  },
  "included": [
    {
      "type": "profile/education",
      "temp-id": 0,
      "attributes": {
        "title": "Cool stuff at MIT !",
      },
      "relationships": {
        "school": {
          "data": {
            "type": "school",
            "id": "5975f3caaba9cf3538d1b5a2",
            "method": "associate"
          }
        }
      }
    }
  ]
}