Shun Miyazawa před 4 roky
rodič
revize
e894dd2e2f
1 změnil soubory, kde provedl 13 přidání a 8 odebrání
  1. 13 8
      packages/app/src/server/routes/apiv3/page.js

+ 13 - 8
packages/app/src/server/routes/apiv3/page.js

@@ -471,31 +471,36 @@ module.exports = (crowi) => {
   /**
   /**
    * @swagger
    * @swagger
    *
    *
+   *  paths:
    *    /page/subscribe:
    *    /page/subscribe:
    *      put:
    *      put:
    *        tags: [Page]
    *        tags: [Page]
-   *        summary: /page/subscribe
-   *        description: Update subscribe status
    *        operationId: updateSubscribeStatus
    *        operationId: updateSubscribeStatus
+   *        summary: /page/subscribe
+   *        description: update subscribe status
    *        requestBody:
    *        requestBody:
    *          content:
    *          content:
    *            application/json:
    *            application/json:
    *              schema:
    *              schema:
    *                properties:
    *                properties:
    *                  pageId:
    *                  pageId:
-   *                    $ref: '#/components/schemas/Page/properties/_id'
+   *                    type: string
+   *                    description: page id
    *                  status:
    *                  status:
-   *                    $ref: '#/components/schemas/Subscription/properties/status'
-   *
+   *                    type: boolen
+   *                    description: subscribe status
    *        responses:
    *        responses:
    *          200:
    *          200:
-   *            description: Succeeded to update subscribe status.
+   *            description: scceeded to update subscribe status
    *            content:
    *            content:
    *              application/json:
    *              application/json:
    *                schema:
    *                schema:
-   *                  $ref: '#/components/schemas/Page'
+   *                  properties:
+   *                    subscription:
+   *                      type: object
+   *                      description: subscribe status
    *          500:
    *          500:
-   *            description: Internal server error.
+   *            description: Internal server error
    */
    */
   router.put('/subscribe', accessTokenParser, loginRequiredStrictly, csrf, validator.subscribe, apiV3FormValidator, async(req, res) => {
   router.put('/subscribe', accessTokenParser, loginRequiredStrictly, csrf, validator.subscribe, apiV3FormValidator, async(req, res) => {
     const { pageId } = req.body;
     const { pageId } = req.body;