Steven Fukase 5 лет назад
Родитель
Сommit
a5cc137904

+ 1 - 6
resource/locales/en_US/admin/admin.json

@@ -346,9 +346,4 @@
       "dropdown_desc": "Choose an action for private pages",
       "select_group": "Select a group",
       "no_groups": "No groups to select",
-      "publish_pages": "Publish all",
-      "delete_pages": "Delete all",
-      "transfer_pages": "Transfer to another group"
-    }
-  }
-}
+      "publish_pages

+ 1 - 5
resource/locales/ja_JP/admin/admin.json

@@ -345,8 +345,4 @@
       "select_group": "グループを選択してください",
       "no_groups": "グループがありません",
       "publish_pages": "全て公開する",
-      "delete_pages": "全て削除する",
-      "transfer_pages": "全て他のグループに移譲する"
-    }
-  }
-}
+      "de

+ 17 - 3
src/server/routes/apiv3/slack-integration.js

@@ -95,10 +95,24 @@ module.exports = (crowi) => {
     return res.apiv3({ slackBotSettingParams });
   });
 
-  /**
+    /**
    * @swagger
-   *  /slack-integration/:
-   *    put:
+   *
+   *    /slack-integration/:
+   *      put:
+   *        tags: [SlackIntegration]
+   *        operationId: putSlackIntegration
+   *        summary: /slack-integration/slack-integration
+   *        description: Put SlackIntegration setting.
+   *        requestBody:
+   *          required: true
+   *          content:
+   *            application/json:
+   *              schema:
+   *                $ref: '#/components/schemas/Slack Integration'
+   *        responses:
+   *           200:
+   *             description: Succeeded to put Slack Integration setting.
    */
   router.put('/',
     accessTokenParser, loginRequiredStrictly, adminRequired, csrf, validator.SlackIntegration, apiV3FormValidator, async(req, res) => {