Clarification about usage of 404 not found in the `application/graphql-response+json` spec
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 25/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- graphql
- Ambito
- api
Direzione di ricerca
The payload names no files, so start in the draft specification text and find the section on HTTP status codes for 4xx responses, then read the three existing comments for any decision already reached. Work here means answering whether a missing resource should return 404 or 200 with data: null, and the result is either a maintainer-agreed answer or a proposed wording change to the spec. Expect to need maintainer input before writing anything.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hey hey,
Not sure if this is the right place to ask, but hopefully someone can still help us out :)
We are currently implementing application/graphql-response+json, which means we should use standard HTTP status codes. We are, however, having a discussion about how to handle cases where the requested data, such as a user, does not exist.
According to this specification, should we return a 404 status code, or should we return a 200 response with "data": null?
We could not find this scenario in the section with all the 4xx status code examples, which made us wonder.
Thanks in advance 😄
- Lingua principale
- JavaScript
- Stelle
- 428
- Fork
- 70
- Merge medio
- 11m
- PR unite (30g)
- 4
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di graphql/graphql-over-http
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
graphql/graphql-over-http#415 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
graphql/graphql-over-http#392 · 4 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
graphql/graphql-over-http#242 · 8 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
graphql/graphql-over-http#216 · 15 commenti · 1 reazione ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
graphql/graphql-over-http#205 · 18 commenti ·
Tutte le issue di graphql/graphql-over-http
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
feature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
openlayers/openlayers#17736 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
521xueweihan/HelloGitHub#4326 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
Mintplex-Labs/anything-llm#7133 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno