Sfoglia il codice sorgente

Merge pull request #10240 from weseek/fix/swagger-for-createpage2

fix: Swagger for createPage
Shun Miyazawa 7 mesi fa
parent
commit
9b61c8cf4e
1 ha cambiato i file con 9 aggiunte e 11 eliminazioni
  1. 9 11
      apps/app/src/server/routes/apiv3/page/index.ts

+ 9 - 11
apps/app/src/server/routes/apiv3/page/index.ts

@@ -303,18 +303,16 @@ module.exports = (crowi) => {
    *            content:
    *              application/json:
    *                schema:
+   *                  type: object
    *                  properties:
-   *                    data:
-   *                      type: object
-   *                      properties:
-   *                        page:
-   *                          $ref: '#/components/schemas/Page'
-   *                        tags:
-   *                          type: array
-   *                          items:
-   *                            $ref: '#/components/schemas/Tags'
-   *                        revision:
-   *                          $ref: '#/components/schemas/Revision'
+   *                    page:
+   *                      $ref: '#/components/schemas/Page'
+   *                    tags:
+   *                      type: array
+   *                      items:
+   *                        $ref: '#/components/schemas/Tags'
+   *                    revision:
+   *                       $ref: '#/components/schemas/Revision'
    *          409:
    *            description: page path is already existed
    */