|
@@ -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) => {
|
|
|
|
|
|