8000 Merge pull request #1724 from json-api/avoid-using-kebab-case-in-example · roy-coder/json-api@c849103 · GitHub
[go: up one dir, main page]

Skip to content

Commit c849103

Browse files
authored
Merge pull request json-api#1724 from json-api/avoid-using-kebab-case-in-example
avoid kebab-case case usage in example
2 parents cd30e13 + 1e455b0 commit c849103

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

recommendations/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,17 +211,17 @@ The request **SHOULD** return a status `202 Accepted` with a link in the `Conten
211211
```http
212212
HTTP/1.1 202 Accepted
213213
Content-Type: application/vnd.api+json
214-
Content-Location: https://example.com/photos/queue-jobs/5234
214+
Content-Location: https://example.com/photos/jobs/5234
215215
216216
{
217217
"data": {
218-
"type": "queue-jobs",
218+
"type": "jobs",
219219
"id": "5234",
220220
"attributes": {
221221
"status": "Pending request, waiting other process"
222222
},
223223
"links": {
224-
"self": "/photos/queue-jobs/5234"
224+
"self": "/photos/jobs/5234"
225225
}
226226
}
227227
}
@@ -230,7 +230,7 @@ Content-Location: https://example.com/photos/queue-jobs/5234
230230
To check the status of the job process, a client can send a request to the location given earlier.
231231

232232
```http
233-
GET /photos/queue-jobs/5234 HTTP/1.1
233+
GET /photos/jobs/5234 HTTP/1.1
234234
Accept: application/vnd.api+json
235235
```
236236

@@ -243,13 +243,13 @@ Retry-After: 10
243243
244244
{
245245
"data": {
246-
"type": "queue-jobs",
246+
"type": "jobs",
247247
"id": "5234",
248248
"attributes": {
249249
"status": "Pending request, waiting other process"
250250
},
251251
"links": {
252-
"self": "/photos/queue-jobs/5234"
252+
"self": "/photos/jobs/5234"
253253
}
254254
}
255255
}

0 commit comments

Comments
 (0)
0