Skip to content

Commit 1c170cc

Browse files
authored
Merge pull request #289 from codelitdev/t3/openapi-media-settings-tag
Group the media settings routes under "Media processing" in the API reference
2 parents e3af756 + 486a684 commit 1c170cc

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medialit/api": patch
3+
---
4+
5+
The API reference groups the media settings routes under "Media processing", which names what they control (WebP conversion and thumbnail sizes), not "Settings".

‎apps/api/src/media-settings/routes.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default (passport: any) => {
1414
router.post(
1515
"/create",
1616
/*
17-
#swagger.tags = ['Settings']
17+
#swagger.tags = ['Media processing']
1818
#swagger.summary = 'Update Media Settings'
1919
#swagger.description = 'Update configuration for media processing.'
2020
#swagger.security = [{ "bearerAuth": [] }, { "apiKeyAuth": [] }]
@@ -52,7 +52,7 @@ export default (passport: any) => {
5252
router.post(
5353
"/get",
5454
/*
55-
#swagger.tags = ['Settings']
55+
#swagger.tags = ['Media processing']
5656
#swagger.summary = 'Get Media Settings'
5757
#swagger.description = 'Retrieve current media processing configuration.'
5858
#swagger.security = [{ "bearerAuth": [] }, { "apiKeyAuth": [] }]

‎apps/api/src/swagger-generator.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ const doc = {
6363
description: "Upload, list, and manage media resources.",
6464
},
6565
{
66-
name: "Settings",
67-
description: "Manage media processing configuration.",
66+
name: "Media processing",
67+
description:
68+
"How new uploads are processed: WebP conversion and its quality, and thumbnail sizes.",
6869
},
6970
{
7071
name: "Webhooks",

‎apps/api/src/swagger_output.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"description": "Upload, list, and manage media resources."
3939
},
4040
{
41-
"name": "Settings",
42-
"description": "Manage media processing configuration."
41+
"name": "Media processing",
42+
"description": "How new uploads are processed: WebP conversion and its quality, and thumbnail sizes."
4343
},
4444
{
4545
"name": "Webhooks",
@@ -80,7 +80,7 @@
8080
"/settings/media/create": {
8181
"post": {
8282
"tags": [
83-
"Settings"
83+
"Media processing"
8484
],
8585
"summary": "Update Media Settings",
8686
"description": "Update configuration for media processing.",
@@ -168,7 +168,7 @@
168168
"/settings/media/get": {
169169
"post": {
170170
"tags": [
171-
"Settings"
171+
"Media processing"
172172
],
173173
"summary": "Get Media Settings",
174174
"description": "Retrieve current media processing configuration.",

0 commit comments

Comments
 (0)