itizawa 5 лет назад
Родитель
Сommit
8eeb84f400
1 измененных файлов с 6 добавлено и 18 удалено
  1. 6 18
      src/server/routes/apiv3/app-settings.js

+ 6 - 18
src/server/routes/apiv3/app-settings.js

@@ -86,10 +86,13 @@ const ErrorV3 = require('../../models/vo/error-apiv3');
  *          secretAccessKey:
  *          secretAccessKey:
  *            type: string
  *            type: string
  *            description: secret key for authentification of AWS
  *            description: secret key for authentification of AWS
- *      AwsSettingParams:
- *        description: AwsSettingParams
+ *      FileUploadSettingParams:
+ *        description: FileUploadTypeParams
  *        type: object
  *        type: object
  *        properties:
  *        properties:
+ *          fileUploadType:
+ *            type: string
+ *            description: fileUploadType
  *          region:
  *          region:
  *            type: string
  *            type: string
  *            description: region of AWS S3
  *            description: region of AWS S3
@@ -105,10 +108,6 @@ const ErrorV3 = require('../../models/vo/error-apiv3');
  *          secretAccessKey:
  *          secretAccessKey:
  *            type: string
  *            type: string
  *            description: secret key for authentification of AWS
  *            description: secret key for authentification of AWS
- *      GcsSettingParams:
- *        description: GcsSettingParams
- *        type: object
- *        properties:
  *          gcsApiKeyJsonPath:
  *          gcsApiKeyJsonPath:
  *            type: string
  *            type: string
  *            description: apiKeyJsonPath of gcp
  *            description: apiKeyJsonPath of gcp
@@ -127,13 +126,6 @@ const ErrorV3 = require('../../models/vo/error-apiv3');
  *          envGcsUploadNamespace:
  *          envGcsUploadNamespace:
  *            type: string
  *            type: string
  *            description: Directory name to create in the bucket
  *            description: Directory name to create in the bucket
- *      FileUploadTypeParams:
- *        description: FileUploadTypeParams
- *        type: object
- *        properties:
- *          fileUploadType:
- *            type: string
- *            description: fileUploadType
  *      PluginSettingParams:
  *      PluginSettingParams:
  *        description: PluginSettingParams
  *        description: PluginSettingParams
  *        type: object
  *        type: object
@@ -570,9 +562,7 @@ module.exports = (crowi) => {
    *          content:
    *          content:
    *            application/json:
    *            application/json:
    *              schema:
    *              schema:
-   *                $ref: '#/components/schemas/FileUploadTypeParams'
-   *                $ref: '#/components/schemas/GcsSettingParams'
-   *                $ref: '#/components/schemas/AwsSettingParams'
+   *                $ref: '#/components/schemas/FileUploadSettingParams'
    *        responses:
    *        responses:
    *          200:
    *          200:
    *            description: Succeeded to update fileUploadSetting
    *            description: Succeeded to update fileUploadSetting
@@ -580,8 +570,6 @@ module.exports = (crowi) => {
    *              application/json:
    *              application/json:
    *                schema:
    *                schema:
    *                  $ref: '#/components/schemas/FileUploadTypeParams'
    *                  $ref: '#/components/schemas/FileUploadTypeParams'
-   *                  $ref: '#/components/schemas/GcsSettingParams'
-   *                  $ref: '#/components/schemas/AwsSettingParams'
    */
    */
   router.put('/file-upload-setting', loginRequiredStrictly, adminRequired, csrf, validator.fileUploadSetting, apiV3FormValidator, async(req, res) => {
   router.put('/file-upload-setting', loginRequiredStrictly, adminRequired, csrf, validator.fileUploadSetting, apiV3FormValidator, async(req, res) => {
     const { fileUploadType } = req.body;
     const { fileUploadType } = req.body;