0

I have multiples comments above my routes and i would like to generate a swagger.yaml or swagger.json with my informations with a command. is it possible ?

/**
 * @swagger
 * paths:
 *  /v1/enterprises:
 *      get:
 *          tags:
 *              - Enterprises
 *          summary:
 *              List of all enterprises
 *          description:
 *              List of all enterprises
 *          responses:
 *              200:
 *              description: Returns all enterprises
 */
router.get('/', enterprises.index);
Cyra
  • 75
  • 6

0 Answers0