api-platform / api-platform/create-client

Handle 401, 403 and 204

Aperta
#221 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
376
Fork
132
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

In fetch.js

Handle 401, 403 and throw an Authorization error.

Handle 204 because methods like DELETE do not provide any JSON output (Unexpected end of JSON input thrown).

I'm using vue, I guess other generators can also benefit from this feature. If you wish I could provide a PR.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.