kaori пре 4 година
родитељ
комит
e37357ff18
1 измењених фајлова са 19 додато и 5 уклоњено
  1. 19 5
      src/server/routes/apiv3/slack-integration-settings.js

+ 19 - 5
src/server/routes/apiv3/slack-integration-settings.js

@@ -198,7 +198,7 @@ module.exports = (crowi) => {
    *    /slack-integration/bot-type/:
    *    /slack-integration/bot-type/:
    *      put:
    *      put:
    *        tags: [botType]
    *        tags: [botType]
-   *        operationId: putCustomBotWithoutProxy
+   *        operationId: putBotType
    *        summary: /slack-integration/bot-type
    *        summary: /slack-integration/bot-type
    *        description: Put botType setting.
    *        description: Put botType setting.
    *        requestBody:
    *        requestBody:
@@ -233,10 +233,24 @@ module.exports = (crowi) => {
       }
       }
     });
     });
 
 
-  /*
-    TODO: add swagger by GW-5930
-  */
-
+  /**
+   * @swagger
+   *
+   *    /slack-integration/bot-type/:
+   *      delete:
+   *        tags: [botType]
+   *        operationId: deleteBotType
+   *        summary: /slack-integration/bot-type
+   *        description: Delete botType setting.
+   *        requestBody:
+   *          content:
+   *            application/json:
+   *              schema:
+   *                $ref: '#/components/schemas/botType'
+   *        responses:
+   *           200:
+   *             description: Succeeded to delete botType setting.
+   */
   router.delete('/bot-type',
   router.delete('/bot-type',
     accessTokenParser, loginRequiredStrictly, adminRequired, csrf, apiV3FormValidator, async(req, res) => {
     accessTokenParser, loginRequiredStrictly, adminRequired, csrf, apiV3FormValidator, async(req, res) => {