ryuichi-e 6 лет назад
Родитель
Сommit
6ce31c3193
1 измененных файлов с 20 добавлено и 1 удалено
  1. 20 1
      src/server/routes/apiv3/users.js

+ 20 - 1
src/server/routes/apiv3/users.js

@@ -102,7 +102,26 @@ module.exports = (crowi) => {
     query('page').isInt({ min: 1 }),
   ];
 
-  // TODO write swagger
+  /**
+   * @swagger
+   *
+   *  paths:
+   *    /users:
+   *      get:
+   *        tags: [Users]
+   *        operationId: listUsers
+   *        summary: /users
+   *        description: Get users
+   *        responses:
+   *          200:
+   *            description: users are fetched
+   *            content:
+   *              application/json:
+   *                schema:
+   *                  properties:
+   *                    paginateResult:
+   *                      $ref: '#/components/schemas/PaginateResult'
+   */
 
   router.get('/', validator.statusList, ApiV3FormValidator, async(req, res) => {