arvid-e 7 месяцев назад
Родитель
Сommit
4a7e6b6a99
1 измененных файлов с 46 добавлено и 0 удалено
  1. 46 0
      apps/app/src/server/routes/apiv3/content-disposition-settings.ts

+ 46 - 0
apps/app/src/server/routes/apiv3/content-disposition-settings.ts

@@ -151,6 +151,29 @@ module.exports = (crowi) => {
     }
   });
 
+  /**
+ * @swagger
+ *
+ * /content-disposition-settings/strict:
+ *   put:
+ *     tags: [Content-Disposition Settings]
+ *     summary: Set content disposition settings for configurable MIME types to strict.
+ *     security:
+ *       - cookieAuth: []
+ *     responses:
+ *       200:
+ *         content:
+ *           application/json:
+ *             schema:
+ *               type: object
+ *               properties:
+ *                 contentDispositionSettings:
+ *                   type: object
+ *                   additionalProperties:
+ *                     type: string
+ *                     description: inline or attachment
+ *
+ */
   router.put(
     '/strict',
     loginRequiredStrictly,
@@ -207,6 +230,29 @@ module.exports = (crowi) => {
     },
   );
 
+  /**
+ * @swagger
+ *
+ * /content-disposition-settings/lax:
+ *   put:
+ *     tags: [Content-Disposition Settings]
+ *     summary: Set content disposition settings for configurable MIME types to lax.
+ *     security:
+ *       - cookieAuth: []
+ *     responses:
+ *       200:
+ *         content:
+ *           application/json:
+ *             schema:
+ *               type: object
+ *               properties:
+ *                 contentDispositionSettings:
+ *                   type: object
+ *                   additionalProperties:
+ *                     type: string
+ *                     description: inline or attachment
+ *
+ */
   router.put(
     '/lax',
     loginRequiredStrictly,