Просмотр исходного кода

add attachments.removeProfileImage

Ryu Sato 6 лет назад
Родитель
Сommit
b281a7bf36
1 измененных файлов с 31 добавлено и 0 удалено
  1. 31 0
      src/server/routes/attachment.js

+ 31 - 0
src/server/routes/attachment.js

@@ -654,6 +654,37 @@ module.exports = function(crowi, app) {
     return res.json(ApiResponse.success({}));
   };
 
+  /**
+   * @swagger
+   *
+   *    /_api/attachments.removeProfileImage:
+   *      post:
+   *        tags: [Attachments]
+   *        operationId: removeProfileImage
+   *        summary: /_api/attachments.removeProfileImage
+   *        description: Remove profile image
+   *        requestBody:
+   *          content:
+   *            application/json:
+   *              schema:
+   *                properties:
+   *                  user:
+   *                    type: string
+   *                    description: user to remove profile image
+   *        responses:
+   *          200:
+   *            description: Succeeded to add attachment.
+   *            content:
+   *              application/json:
+   *                schema:
+   *                  properties:
+   *                    ok:
+   *                      $ref: '#/components/schemas/V1Response/properties/ok'
+   *          403:
+   *            $ref: '#/components/responses/403'
+   *          500:
+   *            $ref: '#/components/responses/500'
+   */
   /**
    * @api {post} /attachments.removeProfileImage Remove profile image attachments
    * @apiGroup Attachment