itizawa 6 лет назад
Родитель
Сommit
5c61f6f05f
1 измененных файлов с 15 добавлено и 21 удалено
  1. 15 21
      src/server/routes/apiv3/customize-setting.js

+ 15 - 21
src/server/routes/apiv3/customize-setting.js

@@ -33,32 +33,26 @@ module.exports = (crowi) => {
   /**
    * @swagger
    *
-   *  paths:
-   *    /_api/v3/customize-setting/layoutTheme:
+   *    /customize-setting/layoutTheme:
    *      put:
    *        tags: [CustomizeSetting]
    *        description: Update layout and theme
-   *        parameters:
-   *          - name: layoutType
-   *            in: query
-   *            description: type of layout
-   *            schema:
-   *              type: string
-   *          - name: themeType
-   *            in: query
-   *            description: type of theme
-   *            schema:
-   *              type: string
-   *        responses:
+   *        requestBody:
+   *          required: true
+   *          content:
+   *            application/json:
+   *              schama:
+   *                type: object
+   *                properties:
+   *                  layoutType:
+   *                    description: type of layout
+   *                    type: string
+   *                  themeType:
+   *                    description: type of theme
+   *                    type: string
+   *      responses:
    *          200:
    *            description: Succeeded to update layout and theme
-   *            content:
-   *              application/json:
-   *                schema:
-   *                  properties:
-   *                    customizeParams:
-   *                      type: object
-   *                      description: new params of layout and theme
    */
   router.put('/layoutTheme', loginRequiredStrictly, adminRequired, csrf, validator.layoutTheme, ApiV3FormValidator, async(req, res) => {
     const customizeParams = {