|
@@ -25,12 +25,6 @@ const logger = loggerFactory('growi:routes:apiv3:slack-integration-settings');
|
|
|
const router = express.Router();
|
|
const router = express.Router();
|
|
|
|
|
|
|
|
|
|
|
|
|
-/**
|
|
|
|
|
- * @swagger
|
|
|
|
|
- * tags:
|
|
|
|
|
- * name: SlackIntegrationSettings
|
|
|
|
|
- */
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* @swagger
|
|
* @swagger
|
|
|
*
|
|
*
|
|
@@ -166,9 +160,9 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/:
|
|
* /slack-integration-settings/:
|
|
|
* get:
|
|
* get:
|
|
|
- * tags: [SlackBotSettingParams]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings]
|
|
|
* operationId: getSlackBotSettingParams
|
|
* operationId: getSlackBotSettingParams
|
|
|
- * summary: get /slack-integration
|
|
|
|
|
|
|
+ * summary: /slack-integration
|
|
|
* description: Get current settings and connection statuses.
|
|
* description: Get current settings and connection statuses.
|
|
|
* responses:
|
|
* responses:
|
|
|
* 200:
|
|
* 200:
|
|
@@ -295,7 +289,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/bot-type/:
|
|
* /slack-integration-settings/bot-type/:
|
|
|
* put:
|
|
* put:
|
|
|
- * tags: [botType]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings]
|
|
|
* operationId: putBotType
|
|
* operationId: putBotType
|
|
|
* summary: /slack-integration/bot-type
|
|
* summary: /slack-integration/bot-type
|
|
|
* description: Put botType setting.
|
|
* description: Put botType setting.
|
|
@@ -334,7 +328,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration/bot-type/:
|
|
* /slack-integration/bot-type/:
|
|
|
* delete:
|
|
* delete:
|
|
|
- * tags: [botType]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings]
|
|
|
* operationId: deleteBotType
|
|
* operationId: deleteBotType
|
|
|
* summary: /slack-integration/bot-type
|
|
* summary: /slack-integration/bot-type
|
|
|
* description: Delete botType setting.
|
|
* description: Delete botType setting.
|
|
@@ -365,7 +359,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/without-proxy/update-settings/:
|
|
* /slack-integration-settings/without-proxy/update-settings/:
|
|
|
* put:
|
|
* put:
|
|
|
- * tags: [UpdateWithoutProxySettings]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings (without proxy)]
|
|
|
* operationId: putWithoutProxySettings
|
|
* operationId: putWithoutProxySettings
|
|
|
* summary: update customBotWithoutProxy settings
|
|
* summary: update customBotWithoutProxy settings
|
|
|
* description: Update customBotWithoutProxy setting.
|
|
* description: Update customBotWithoutProxy setting.
|
|
@@ -405,7 +399,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/without-proxy/update-permissions/:
|
|
* /slack-integration-settings/without-proxy/update-permissions/:
|
|
|
* put:
|
|
* put:
|
|
|
- * tags: [UpdateWithoutProxyPermissions]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings (without proxy)]
|
|
|
* operationId: putWithoutProxyPermissions
|
|
* operationId: putWithoutProxyPermissions
|
|
|
* summary: update customBotWithoutProxy permissions
|
|
* summary: update customBotWithoutProxy permissions
|
|
|
* description: Update customBotWithoutProxy permissions.
|
|
* description: Update customBotWithoutProxy permissions.
|
|
@@ -448,7 +442,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/slack-app-integrations:
|
|
* /slack-integration-settings/slack-app-integrations:
|
|
|
* post:
|
|
* post:
|
|
|
- * tags: [SlackIntegration]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings (with proxy)]
|
|
|
* operationId: putSlackAppIntegrations
|
|
* operationId: putSlackAppIntegrations
|
|
|
* summary: /slack-integration
|
|
* summary: /slack-integration
|
|
|
* description: Generate SlackAppIntegrations
|
|
* description: Generate SlackAppIntegrations
|
|
@@ -498,7 +492,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/slack-app-integrations/:id:
|
|
* /slack-integration-settings/slack-app-integrations/:id:
|
|
|
* delete:
|
|
* delete:
|
|
|
- * tags: [SlackIntegration]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings (with proxy)]
|
|
|
* operationId: deleteAccessTokens
|
|
* operationId: deleteAccessTokens
|
|
|
* summary: delete accessTokens
|
|
* summary: delete accessTokens
|
|
|
* description: Delete accessTokens
|
|
* description: Delete accessTokens
|
|
@@ -556,7 +550,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/slack-app-integrations/:id/makeprimary:
|
|
* /slack-integration-settings/slack-app-integrations/:id/makeprimary:
|
|
|
* put:
|
|
* put:
|
|
|
- * tags: [SlackIntegration]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings (with proxy)]
|
|
|
* operationId: makePrimary
|
|
* operationId: makePrimary
|
|
|
* summary: /slack-integration
|
|
* summary: /slack-integration
|
|
|
* description: Make SlackAppTokens primary
|
|
* description: Make SlackAppTokens primary
|
|
@@ -603,7 +597,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/slack-app-integrations/:id/regenerate-tokens:
|
|
* /slack-integration-settings/slack-app-integrations/:id/regenerate-tokens:
|
|
|
* put:
|
|
* put:
|
|
|
- * tags: [SlackIntegration]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings (with proxy)]
|
|
|
* operationId: putRegenerateTokens
|
|
* operationId: putRegenerateTokens
|
|
|
* summary: /slack-integration
|
|
* summary: /slack-integration
|
|
|
* description: Regenerate SlackAppTokens
|
|
* description: Regenerate SlackAppTokens
|
|
@@ -636,7 +630,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/slack-app-integrations/:id/permissions:
|
|
* /slack-integration-settings/slack-app-integrations/:id/permissions:
|
|
|
* put:
|
|
* put:
|
|
|
- * tags: [SlackIntegration]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings (with proxy)]
|
|
|
* operationId: putSupportedCommands
|
|
* operationId: putSupportedCommands
|
|
|
* summary: /slack-integration-settings/:id/permissions
|
|
* summary: /slack-integration-settings/:id/permissions
|
|
|
* description: update supported commands
|
|
* description: update supported commands
|
|
@@ -695,7 +689,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/slack-app-integrations/:id/relation-test:
|
|
* /slack-integration-settings/slack-app-integrations/:id/relation-test:
|
|
|
* post:
|
|
* post:
|
|
|
- * tags: [botType]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings (with proxy)]
|
|
|
* operationId: postRelationTest
|
|
* operationId: postRelationTest
|
|
|
* summary: Test relation
|
|
* summary: Test relation
|
|
|
* description: Delete botType setting.
|
|
* description: Delete botType setting.
|
|
@@ -766,7 +760,7 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /slack-integration-settings/without-proxy/test:
|
|
* /slack-integration-settings/without-proxy/test:
|
|
|
* post:
|
|
* post:
|
|
|
- * tags: [botType]
|
|
|
|
|
|
|
+ * tags: [SlackIntegrationSettings (without proxy)]
|
|
|
* operationId: postTest
|
|
* operationId: postTest
|
|
|
* summary: test the connection
|
|
* summary: test the connection
|
|
|
* description: Test the connection with slack work space.
|
|
* description: Test the connection with slack work space.
|