itizawa пре 6 година
родитељ
комит
6553b817b5
1 измењених фајлова са 16 додато и 22 уклоњено
  1. 16 22
      src/server/routes/apiv3/markdown-setting.js

+ 16 - 22
src/server/routes/apiv3/markdown-setting.js

@@ -37,32 +37,26 @@ module.exports = (crowi) => {
   /**
   /**
    * @swagger
    * @swagger
    *
    *
-   *  paths:
-   *    /_api/v3/markdown-setting/lineBreak:
+   *    /markdown-setting/lineBreak:
    *      put:
    *      put:
    *        tags: [MarkDownSetting]
    *        tags: [MarkDownSetting]
-   *        description: Update lineBreak
-   *        parameters:
-   *          - name: isEnabledLinebreaks
-   *            in: query
-   *            description: enable lineBreak
-   *            schema:
-   *              type: boolean
-   *          - name: isEnabledLinebreaksInComments
-   *            in: query
-   *            description: enable lineBreak in comment
-   *            schema:
-   *              type: boolean
+   *        description: Update lineBreak setting
+   *        requestBody:
+   *          required: true
+   *          content:
+   *            application/json:
+   *              schema:
+   *                type: object
+   *                properties:
+   *                  isEnabledLinebreaks:
+   *                    description: enable lineBreak
+   *                    type: boolean
+   *                  isEnabledLinebreaksInComments:
+   *                    description: enable lineBreak in comment
+   *                    type: boolean
    *        responses:
    *        responses:
    *          200:
    *          200:
-   *            description: Updating lineBreak success
-   *            content:
-   *              application/json:
-   *                schema:
-   *                  properties:
-   *                    xssParams:
-   *                      type: object
-   *                      description: new lineBreak params
+   *            description: Succeeded to update lineBreak setting
    */
    */
   router.put('/lineBreak', loginRequiredStrictly, adminRequired, csrf, validator.lineBreak, ApiV3FormValidator, async(req, res) => {
   router.put('/lineBreak', loginRequiredStrictly, adminRequired, csrf, validator.lineBreak, ApiV3FormValidator, async(req, res) => {