Skip to content

Commit 1e455b0

Browse files
authored
avoid kebab-case case usage in example
JSON:API specification recommends using camelCase since some time. But was still using kebab-case for resource type and in URL in one example.
1 parent d990fe5 commit 1e455b0

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)
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