Last active
July 13, 2021 17:05
-
-
Save azizkale/661e47117d97d4368ad7c1aa629524b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @swagger | |
* /posts: | |
* get: | |
* summary: Returns all posts | |
* tags: [Posts] | |
* responses: | |
* 200: | |
* description: the list of the posts | |
* content: | |
* application/json: | |
* schema: | |
* type: array | |
* items: | |
* $ref: '#/components/schemas/Post' | |
*/ | |
postRouter.get("/", (req, res) => { | |
res.send(data); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment