Ryu Sato пре 6 година
родитељ
комит
960e2699cf
1 измењених фајлова са 13 додато и 9 уклоњено
  1. 13 9
      src/server/routes/comment.js

+ 13 - 9
src/server/routes/comment.js

@@ -64,16 +64,17 @@
    *    /_api/comments.get:
    *    /_api/comments.get:
    *      get:
    *      get:
    *        tags: [Comments]
    *        tags: [Comments]
+   *        summary: /_api/comments.get
    *        description: Get comments of the page of the revision
    *        description: Get comments of the page of the revision
-   *        requestBody:
-   *          content:
-   *            application/json:
-   *              schema:
-   *                properties:
-   *                  page_id:
-   *                    $ref: '#/components/schemas/Page/properties/_id'
-   *                  revision_id:
-   *                    $ref: '#/components/schemas/Revision/properties/_id'
+   *        parameters:
+   *          - in: query
+   *            name: page_id
+   *            schema:
+   *              $ref: '#/components/schemas/Page/properties/_id'
+   *          - in: query
+   *            name: revision_id
+   *            schema:
+   *              $ref: '#/components/schemas/Revision/properties/_id'
    *        responses:
    *        responses:
    *          200:
    *          200:
    *            description: Succeeded to get comments of the page of the revision.
    *            description: Succeeded to get comments of the page of the revision.
@@ -156,6 +157,7 @@
    *    /_api/comments.add:
    *    /_api/comments.add:
    *      post:
    *      post:
    *        tags: [Comments]
    *        tags: [Comments]
+   *        summary: /_api/comments.add
    *        description: Post comment for the page
    *        description: Post comment for the page
    *        requestBody:
    *        requestBody:
    *          content:
    *          content:
@@ -283,6 +285,7 @@
    *    /_api/comments.update:
    *    /_api/comments.update:
    *      post:
    *      post:
    *        tags: [Comments]
    *        tags: [Comments]
+   *        summary: /_api/comments.update
    *        description: Update comment dody
    *        description: Update comment dody
    *        requestBody:
    *        requestBody:
    *          content:
    *          content:
@@ -373,6 +376,7 @@
    *    /_api/comments.remove:
    *    /_api/comments.remove:
    *      post:
    *      post:
    *        tags: [Comments]
    *        tags: [Comments]
+   *        summary: /_api/comments.remove
    *        description: Remove specified comment
    *        description: Remove specified comment
    *        requestBody:
    *        requestBody:
    *          content:
    *          content: