Просмотр исходного кода

support(jsdoc): add swagger document to slack-integration.js

Atsushi Nakatsugawa 1 год назад
Родитель
Сommit
b1ec062ce8
1 измененных файлов с 16 добавлено и 0 удалено
  1. 16 0
      apps/app/src/server/routes/apiv3/slack-integration.js

+ 16 - 0
apps/app/src/server/routes/apiv3/slack-integration.js

@@ -307,6 +307,8 @@ module.exports = (crowi) => {
    * /slack-integration/commands:
    *   post:
    *     tags: [SlackIntegration]
+   *     security:
+   *       - cookieAuth: []
    *     summary: /slack-integration/commands
    *     description: Handle Slack commands
    *     requestBody:
@@ -345,6 +347,8 @@ module.exports = (crowi) => {
    * /slack-integration/proxied/verify:
    *   post:
    *     tags: [SlackIntegration]
+   *     security:
+   *       - cookieAuth: []
    *     summary: /slack-integration/proxied/verify
    *     description: Verify the access token
    *     requestBody:
@@ -383,6 +387,8 @@ module.exports = (crowi) => {
    * /slack-integration/proxied/commands:
    *   post:
    *     tags: [SlackIntegration]
+   *     security:
+   *       - cookieAuth: []
    *     summary: /slack-integration/proxied/commands
    *     description: Handle Slack commands
    *     requestBody:
@@ -446,6 +452,8 @@ module.exports = (crowi) => {
    * /slack-integration/interactions:
    *   post:
    *     tags: [SlackIntegration]
+   *     security:
+   *       - cookieAuth: []
    *     summary: /slack-integration/interactions
    *     description: Handle Slack interactions
    *     requestBody:
@@ -469,6 +477,8 @@ module.exports = (crowi) => {
    * /slack-integration/proxied/interactions:
    *   post:
    *     tags: [SlackIntegration]
+   *     security:
+   *       - cookieAuth: []
    *     summary: /slack-integration/proxied/interactions
    *     description: Handle Slack interactions
    *     requestBody:
@@ -493,6 +503,8 @@ module.exports = (crowi) => {
    * /slack-integration/supported-commands:
    *   get:
    *     tags: [SlackIntegration]
+   *     security:
+   *       - cookieAuth: []
    *     summary: /slack-integration/supported-commands
    *     description: Get supported commands
    *     responses:
@@ -526,6 +538,8 @@ module.exports = (crowi) => {
    * /slack-integration/events:
    *   post:
    *     tags: [SlackIntegration]
+   *     security:
+   *       - cookieAuth: []
    *     summary: /slack-integration/events
    *     description: Handle Slack events
    *     requestBody:
@@ -579,6 +593,8 @@ module.exports = (crowi) => {
    * /slack-integration/proxied/events:
    *   post:
    *     tags: [SlackIntegration]
+   *     security:
+   *       - cookieAuth: []
    *     summary: /slack-integration/proxied/events
    *     description: Handle Slack events
    *     requestBody: