From 76235b0e1f77b541b9dd118fd4f192db21e16daa Mon Sep 17 00:00:00 2001 From: seb Date: Fri, 23 Oct 2026 04:59:02 +0200 Subject: [PATCH] u --- docs/api/routes-all.md | 4 ++-- docs/api/routes/posterminal/setOff.md | 4 ++-- docs/api/routes/posterminal/setOn.md | 4 ++-- src/api/routes/posterminal.js | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/api/routes-all.md b/docs/api/routes-all.md index c17ba4f..eb278a1 100644 --- a/docs/api/routes-all.md +++ b/docs/api/routes-all.md @@ -690,10 +690,10 @@ _none_ #### Enable all categories on terminal — `PUT /posterminal/{id}/all` - Params: `id: int` - Returns: `200 { id: int, categoryIds: int[] }` -#### Disable category on terminal — `DELETE /posterminal/{id}/category/{categoryId}` +#### Disable category and subcategories on terminal — `DELETE /posterminal/{id}/category/{categoryId}` - Params: `id: int, categoryId: int` - Returns: `200 { id: int, categoryIds: int[] }` -#### Enable category on terminal — `PUT /posterminal/{id}/category/{categoryId}` +#### Enable category and subcategories on terminal — `PUT /posterminal/{id}/category/{categoryId}` - Params: `id: int, categoryId: int` - Returns: `200 { id: int, categoryIds: int[] }` diff --git a/docs/api/routes/posterminal/setOff.md b/docs/api/routes/posterminal/setOff.md index 8caf70f..3395f6b 100644 --- a/docs/api/routes/posterminal/setOff.md +++ b/docs/api/routes/posterminal/setOff.md @@ -2,9 +2,9 @@ Protected. Requires a valid session cookie (`credentials: 'include'`). -Disable category on terminal +Disable category and subcategories on terminal -Removes a single category's visibility on a terminal (idempotent). +Removes a category and all its descendant subcategories from a terminal (idempotent). ## Path parameters diff --git a/docs/api/routes/posterminal/setOn.md b/docs/api/routes/posterminal/setOn.md index 4e12405..0cf61fd 100644 --- a/docs/api/routes/posterminal/setOn.md +++ b/docs/api/routes/posterminal/setOn.md @@ -2,9 +2,9 @@ Protected. Requires a valid session cookie (`credentials: 'include'`). -Enable category on terminal +Enable category and subcategories on terminal -Toggles a single category's visibility on a terminal (idempotent). +Enables a category and all its descendant subcategories on a terminal (idempotent). ## Path parameters diff --git a/src/api/routes/posterminal.js b/src/api/routes/posterminal.js index a1bac8c..6e21087 100644 --- a/src/api/routes/posterminal.js +++ b/src/api/routes/posterminal.js @@ -402,8 +402,8 @@ export function register(app, basePath = '') { * /posterminal/{id}/category/{categoryId}: * put: * tags: [Posterminal] - * summary: Enable category on terminal - * description: Toggles a single category's visibility on a terminal (idempotent). + * summary: Enable category and subcategories on terminal + * description: Enables a category and all its descendant subcategories on a terminal (idempotent). * security: * - cookieAuth: [] * x-markdown: posterminal/setOn.md @@ -458,8 +458,8 @@ export function register(app, basePath = '') { * $ref: '#/components/schemas/Error' * delete: * tags: [Posterminal] - * summary: Disable category on terminal - * description: Removes a single category's visibility on a terminal (idempotent). + * summary: Disable category and subcategories on terminal + * description: Removes a category and all its descendant subcategories from a terminal (idempotent). * security: * - cookieAuth: [] * x-markdown: posterminal/setOff.md