mirror of
https://github.com/goldbergyoni/nodebestpractices.git
synced 2025-11-02 19:18:34 +08:00
rephrased titles
This commit is contained in:
@ -154,7 +154,7 @@ Read in a different language: [**CN**](/README.chines
|
|||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
## ![✔] 2.5 Document RESTful API errors using Swagger
|
## ![✔] 2.5 Document API errors using Swagger or GraphQL
|
||||||
|
|
||||||
**TL;DR:** Let your API callers know which errors might come in return so they can handle these thoughtfully without crashing. For RESTful APIs, this is usually done with documentation frameworks like Swagger. If you're using GraphQL, you can utilize your schema and comments as well.
|
**TL;DR:** Let your API callers know which errors might come in return so they can handle these thoughtfully without crashing. For RESTful APIs, this is usually done with documentation frameworks like Swagger. If you're using GraphQL, you can utilize your schema and comments as well.
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
# Document RESTful API errors using Swagger
|
# Document API errors using Swagger or GraphQL
|
||||||
|
|
||||||
### One Paragraph Explainer
|
### One Paragraph Explainer
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user