Skip to content

Node.js based forum software built for the modern web

test: add missing spec files

Barış Soner Uşaklı6eb280774705
diff --git a/public/openapi/read.yaml b/public/openapi/read.yaml
index f6104b495e..7df263b819 100644
--- a/public/openapi/read.yaml
+++ b/public/openapi/read.yaml
@@ -80,18 +80,36 @@ paths:
$ref: 'read/admin/dashboard/topics.yaml'
/api/admin/dashboard/searches:
$ref: 'read/admin/dashboard/searches.yaml'
- "/api/admin/settings/{term}":
- $ref: 'read/admin/settings/term.yaml'
+ "/api/admin/settings/general":
+ $ref: 'read/admin/settings/general.yaml'
/api/admin/settings/navigation:
$ref: 'read/admin/settings/navigation.yaml'
- /api/admin/settings/api:
- $ref: 'read/admin/settings/api.yaml'
- /api/admin/settings/email:
- $ref: 'read/admin/settings/email.yaml'
/api/admin/settings/user:
$ref: 'read/admin/settings/user.yaml'
+ /api/admin/settings/reputation:
+ $ref: 'read/admin/settings/reputation.yaml'
+ /api/admin/settings/group:
+ $ref: 'read/admin/settings/group.yaml'
+ /api/admin/settings/tags:
+ $ref: 'read/admin/settings/tags.yaml'
/api/admin/settings/post:
$ref: 'read/admin/settings/post.yaml'
+ /api/admin/settings/uploads:
+ $ref: 'read/admin/settings/uploads.yaml'
+ /api/admin/settings/email:
+ $ref: 'read/admin/settings/email.yaml'
+ /api/admin/settings/chat:
+ $ref: 'read/admin/settings/chat.yaml'
+ /api/admin/settings/pagination:
+ $ref: 'read/admin/settings/pagination.yaml'
+ /api/admin/settings/notifications:
+ $ref: 'read/admin/settings/notifications.yaml'
+ /api/admin/settings/api:
+ $ref: 'read/admin/settings/api.yaml'
+ /api/admin/settings/cookies:
+ $ref: 'read/admin/settings/cookies.yaml'
+ /api/admin/settings/web-crawler:
+ $ref: 'read/admin/settings/web-crawler.yaml'
/api/admin/settings/advanced:
$ref: 'read/admin/settings/advanced.yaml'
/api/admin/manage/categories:
@@ -120,8 +138,12 @@ paths:
$ref: 'read/admin/manage/uploads.yaml'
/api/admin/manage/digest:
$ref: 'read/admin/manage/digest.yaml'
- "/api/admin/appearance/{term}":
- $ref: 'read/admin/appearance/term.yaml'
+ "/api/admin/appearance/themes":
+ $ref: 'read/admin/appearance/themes.yaml'
+ "/api/admin/appearance/skins":
+ $ref: 'read/admin/appearance/skins.yaml'
+ "/api/admin/appearance/customise":
+ $ref: 'read/admin/appearance/customise.yaml'
/api/admin/extend/plugins:
$ref: 'read/admin/extend/plugins.yaml'
/api/admin/extend/widgets:
diff --git a/public/openapi/read/admin/appearance/term.yaml b/public/openapi/read/admin/appearance/customise.yaml
similarity index 62%
rename from public/openapi/read/admin/appearance/term.yaml
rename to public/openapi/read/admin/appearance/customise.yaml
index 5c8364fa31..d2b2eabb68 100644
--- a/public/openapi/read/admin/appearance/term.yaml
+++ b/public/openapi/read/admin/appearance/customise.yaml
@@ -2,13 +2,6 @@ get:
tags:
- admin
summary: Get appearance settings
- parameters:
- - name: term
- in: path
- required: true
- schema:
- type: string
- example: themes
responses:
"200":
description: ""
diff --git a/public/openapi/read/admin/appearance/skins.yaml b/public/openapi/read/admin/appearance/skins.yaml
new file mode 100644
index 0000000000..d2b2eabb68
--- /dev/null
+++ b/public/openapi/read/admin/appearance/skins.yaml
@@ -0,0 +1,11 @@
+get:
+ tags:
+ - admin
+ summary: Get appearance settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
diff --git a/public/openapi/read/admin/appearance/themes.yaml b/public/openapi/read/admin/appearance/themes.yaml
new file mode 100644
index 0000000000..d2b2eabb68
--- /dev/null
+++ b/public/openapi/read/admin/appearance/themes.yaml
@@ -0,0 +1,11 @@
+get:
+ tags:
+ - admin
+ summary: Get appearance settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
diff --git a/public/openapi/read/admin/settings/chat.yaml b/public/openapi/read/admin/settings/chat.yaml
new file mode 100644
index 0000000000..402f9b173c
--- /dev/null
+++ b/public/openapi/read/admin/settings/chat.yaml
@@ -0,0 +1,16 @@
+get:
+ tags:
+ - admin
+ summary: Get chat settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ allOf:
+ - type: object
+ properties:
+ title:
+ type: string
+ - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
diff --git a/public/openapi/read/admin/settings/cookies.yaml b/public/openapi/read/admin/settings/cookies.yaml
new file mode 100644
index 0000000000..8f454839e5
--- /dev/null
+++ b/public/openapi/read/admin/settings/cookies.yaml
@@ -0,0 +1,16 @@
+get:
+ tags:
+ - admin
+ summary: Get cookie settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ allOf:
+ - type: object
+ properties:
+ title:
+ type: string
+ - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
diff --git a/public/openapi/read/admin/settings/term.yaml b/public/openapi/read/admin/settings/general.yaml
similarity index 85%
rename from public/openapi/read/admin/settings/term.yaml
rename to public/openapi/read/admin/settings/general.yaml
index 86eaf50b4e..d19ff555ee 100644
--- a/public/openapi/read/admin/settings/term.yaml
+++ b/public/openapi/read/admin/settings/general.yaml
@@ -2,13 +2,6 @@ get:
tags:
- admin
summary: Get system settings
- parameters:
- - name: term
- in: path
- required: true
- schema:
- type: string
- example: general
responses:
"200":
description: ""
diff --git a/public/openapi/read/admin/settings/group.yaml b/public/openapi/read/admin/settings/group.yaml
new file mode 100644
index 0000000000..e4b0157a2f
--- /dev/null
+++ b/public/openapi/read/admin/settings/group.yaml
@@ -0,0 +1,16 @@
+get:
+ tags:
+ - admin
+ summary: Get group settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ allOf:
+ - type: object
+ properties:
+ title:
+ type: string
+ - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
diff --git a/public/openapi/read/admin/settings/notifications.yaml b/public/openapi/read/admin/settings/notifications.yaml
new file mode 100644
index 0000000000..3ef8e368ab
--- /dev/null
+++ b/public/openapi/read/admin/settings/notifications.yaml
@@ -0,0 +1,16 @@
+get:
+ tags:
+ - admin
+ summary: Get notification settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ allOf:
+ - type: object
+ properties:
+ title:
+ type: string
+ - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
diff --git a/public/openapi/read/admin/settings/pagination.yaml b/public/openapi/read/admin/settings/pagination.yaml
new file mode 100644
index 0000000000..cb598ef643
--- /dev/null
+++ b/public/openapi/read/admin/settings/pagination.yaml
@@ -0,0 +1,16 @@
+get:
+ tags:
+ - admin
+ summary: Get pagination settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ allOf:
+ - type: object
+ properties:
+ title:
+ type: string
+ - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
diff --git a/public/openapi/read/admin/settings/reputation.yaml b/public/openapi/read/admin/settings/reputation.yaml
new file mode 100644
index 0000000000..91f6ea0561
--- /dev/null
+++ b/public/openapi/read/admin/settings/reputation.yaml
@@ -0,0 +1,16 @@
+get:
+ tags:
+ - admin
+ summary: Get reputation settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ allOf:
+ - type: object
+ properties:
+ title:
+ type: string
+ - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
diff --git a/public/openapi/read/admin/settings/tags.yaml b/public/openapi/read/admin/settings/tags.yaml
new file mode 100644
index 0000000000..53d82a4355
--- /dev/null
+++ b/public/openapi/read/admin/settings/tags.yaml
@@ -0,0 +1,16 @@
+get:
+ tags:
+ - admin
+ summary: Get tag settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ allOf:
+ - type: object
+ properties:
+ title:
+ type: string
+ - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
diff --git a/public/openapi/read/admin/settings/uploads.yaml b/public/openapi/read/admin/settings/uploads.yaml
new file mode 100644
index 0000000000..f181df0792
--- /dev/null
+++ b/public/openapi/read/admin/settings/uploads.yaml
@@ -0,0 +1,16 @@
+get:
+ tags:
+ - admin
+ summary: Get upload settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ allOf:
+ - type: object
+ properties:
+ title:
+ type: string
+ - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file
diff --git a/public/openapi/read/admin/settings/web-crawler.yaml b/public/openapi/read/admin/settings/web-crawler.yaml
new file mode 100644
index 0000000000..57963c5901
--- /dev/null
+++ b/public/openapi/read/admin/settings/web-crawler.yaml
@@ -0,0 +1,16 @@
+get:
+ tags:
+ - admin
+ summary: Get web crawler settings
+ responses:
+ "200":
+ description: ""
+ content:
+ application/json:
+ schema:
+ allOf:
+ - type: object
+ properties:
+ title:
+ type: string
+ - $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
\ No newline at end of file