Shun Miyazawa 4 лет назад
Родитель
Сommit
9fc50be8fe
1 измененных файлов с 29 добавлено и 0 удалено
  1. 29 0
      src/server/routes/apiv3/users.js

+ 29 - 0
src/server/routes/apiv3/users.js

@@ -817,6 +817,35 @@ module.exports = (crowi) => {
     }
   });
 
+  /**
+   * @swagger
+   *
+   *  paths:
+   *    /users/send-invitation-email:
+   *      put:
+   *        tags: [Users]
+   *        operationId: sendInvitationEmail
+   *        summary: /users/send-invitation-email
+   *        description: send invitation email
+   *        requestBody:
+   *          content:
+   *            application/json:
+   *              schema:
+   *                properties:
+   *                  id:
+   *                    type: string
+   *                    description: user id for send invitation email
+   *        responses:
+   *          200:
+   *            description: success send invitation email
+   *            content:
+   *              application/json:
+   *                schema:
+   *                  properties:
+   *                    failedToSendEmailList:
+   *                      type: object
+   *                      description: email and easons for email sending failure
+   */
   router.put('/send-invitation-email', async(req, res) => {
     const { id } = req.body;