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 response example.
  • Loading branch information
beauby committed Jul 27, 2017
commit c6fc43fff88d56b04d5e33696fb149b2dbbe1372
40 changes: 40 additions & 0 deletions _format/1.1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1338,6 +1338,46 @@ If a sideposted resource is present in the response document, then it **MUST**
have a `temp-id` member that identifies the corresponding resource from the request
document.

```http
HTTP/1.1 201 Created
Content-Type: application/vnd.api+json

{
"data": {
"type": "articles",
"id": "123",
"attributes": {
"title": "Sideposting with json:api"
},
"relationships": {
"tags": {
"data": [{ "type": "tags", "id": "9" },
{ "type": "tags", "id": "14" },
{ "type": "tags", "id": "42" }]
}
}
},
"included": [
{
"type": "tags",
"id": "14",
"temp-id": "1",
"attributes": {
"label": "JSON"
}
},
{
"type": "tags",
"id": "42",
"temp-id": "2",
"attributes": {
"label": "REST"
}
}
]
}
```

##### <a href="#crud-creating-responses-202" id="crud-creating-responses-202" class="headerlink"></a> 202 Accepted

If a request to create a resource has been accepted for processing, but the
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