Skip to content

[WIP] Sideposting draft #1197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add example.
  • Loading branch information
beauby committed Jul 26, 2017
commit 2ddd0eab8ec44da784120d71d3c5167403c1b964
39 changes: 39 additions & 0 deletions _format/1.1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,45 @@ otherwise (that is an object with a single `pointer` member the value of which i
JSON pointer to a resource object). The document **MUST** still respect the full
linkage requirement.

For instance, a new article might be created along with two tags with the following
request:

```http
POST /articles HTTP/1.1
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json

{
"data": {
"type": "articles",
"attributes": {
"title": "Sideposting with json:api"
},
"relationships": {
"tags": {
"data": [{ "type": "tags", "id": "9" },
{ "pointer": "/included/0" },
{ "pointer": "/included/1" }]
}
}
},
"included": [
{
"type": "tags",
"attributes": {
"label": "JSON"
}
},
{
"type": "tags",
"attributes": {
"label": "REST"
}
}
]
}
```

A server **MUST** handle sideposting requests transactionally, and either create all
requested resources or none.

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy