itizawa 6 лет назад
Родитель
Сommit
59593f0cbd
1 измененных файлов с 18 добавлено и 1 удалено
  1. 18 1
      src/server/routes/apiv3/notification-setting.js

+ 18 - 1
src/server/routes/apiv3/notification-setting.js

@@ -63,7 +63,24 @@ module.exports = (crowi) => {
 
   const { ApiV3FormValidator } = crowi.middlewares;
 
-  // TODO swagger
+  /**
+   * @swagger
+   *
+   *    /notification-setting/:
+   *      get:
+   *        tags: [NotificationSetting]
+   *        description: Get notification paramators
+   *        responses:
+   *          200:
+   *            description: params of notification
+   *            content:
+   *              application/json:
+   *                schema:
+   *                  properties:
+   *                    notificationParams:
+   *                      type: object
+   *                      description: notification params
+   */
   router.get('/', loginRequiredStrictly, adminRequired, async(req, res) => {
     const notificationParams = {
       webhookUrl: await crowi.configManager.getConfig('notification', 'slack:incomingWebhookUrl'),