From 6a526631b442686380bce193a3b4d8e05afb3f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 11 Nov 2022 17:36:45 -0500 Subject: [PATCH] add openapi --- public/openapi/read.yaml | 2 ++ .../openapi/read/admin/settings/advanced.yaml | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 public/openapi/read/admin/settings/advanced.yaml diff --git a/public/openapi/read.yaml b/public/openapi/read.yaml index 31b446d351..ce6c0936fe 100644 --- a/public/openapi/read.yaml +++ b/public/openapi/read.yaml @@ -96,6 +96,8 @@ paths: $ref: 'read/admin/settings/user.yaml' /api/admin/settings/post: $ref: 'read/admin/settings/post.yaml' + /api/admin/settings/advanced: + $ref: 'read/admin/settings/advanced.yaml' /api/admin/manage/categories: $ref: 'read/admin/manage/categories.yaml' "/api/admin/manage/categories/{category_id}": diff --git a/public/openapi/read/admin/settings/advanced.yaml b/public/openapi/read/admin/settings/advanced.yaml new file mode 100644 index 0000000000..2cebeeb7e9 --- /dev/null +++ b/public/openapi/read/admin/settings/advanced.yaml @@ -0,0 +1,18 @@ +get: + tags: + - admin + summary: Get advanced settings + responses: + "200": + description: "" + content: + application/json: + schema: + allOf: + - type: object + properties: + groupsExemptFromMaintenanceMode: + type: array + items: + $ref: ../../../components/schemas/GroupObject.yaml#/GroupDataObject + - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps \ No newline at end of file