Skip to content

Instantly share code, notes, and snippets.

@vasilakisfil
Created November 26, 2014 17:21
Show Gist options
  • Save vasilakisfil/df30596a777f0e9bfddd to your computer and use it in GitHub Desktop.
Save vasilakisfil/df30596a777f0e9bfddd to your computer and use it in GitHub Desktop.
PUT relationship in JSONAPI
PUT /articles/1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
{
"articles": {
"title": "Rails is a Melting Pot",
"links": {
"author": "1"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment