From d33bb02c740cfcc1abdb9c90d09b7a6cdf1bcede Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 14 Jan 2026 12:46:30 +1000 Subject: [PATCH] Add missing params to swagger --- .../paths/users/userID/2fa/backup-codes/post.json | 13 +++++++++++++ backend/schema/paths/users/userID/2fa/delete.json | 13 +++++++++++++ .../schema/paths/users/userID/2fa/enable/post.json | 13 +++++++++++++ backend/schema/paths/users/userID/2fa/get.json | 13 +++++++++++++ backend/schema/paths/users/userID/2fa/post.json | 13 +++++++++++++ frontend/src/locale/src/pl.json | 6 +++--- 6 files changed, 68 insertions(+), 3 deletions(-) diff --git a/backend/schema/paths/users/userID/2fa/backup-codes/post.json b/backend/schema/paths/users/userID/2fa/backup-codes/post.json index ab2faa49..ebfc8c2a 100644 --- a/backend/schema/paths/users/userID/2fa/backup-codes/post.json +++ b/backend/schema/paths/users/userID/2fa/backup-codes/post.json @@ -2,6 +2,19 @@ "operationId": "regenUser2faCodes", "summary": "Regenerate 2FA backup codes", "tags": ["users"], + "parameters": [ + { + "in": "path", + "name": "userID", + "schema": { + "type": "integer", + "minimum": 1 + }, + "required": true, + "description": "User ID", + "example": 2 + } + ], "requestBody": { "description": "Verififcation Payload", "required": true, diff --git a/backend/schema/paths/users/userID/2fa/delete.json b/backend/schema/paths/users/userID/2fa/delete.json index a1c53697..d308be7f 100644 --- a/backend/schema/paths/users/userID/2fa/delete.json +++ b/backend/schema/paths/users/userID/2fa/delete.json @@ -2,6 +2,19 @@ "operationId": "disableUser2fa", "summary": "Disable 2fa for user", "tags": ["users"], + "parameters": [ + { + "in": "path", + "name": "userID", + "schema": { + "type": "integer", + "minimum": 1 + }, + "required": true, + "description": "User ID", + "example": 2 + } + ], "requestBody": { "description": "2fa Code Payload", "required": true, diff --git a/backend/schema/paths/users/userID/2fa/enable/post.json b/backend/schema/paths/users/userID/2fa/enable/post.json index bab0b17e..f08b681f 100644 --- a/backend/schema/paths/users/userID/2fa/enable/post.json +++ b/backend/schema/paths/users/userID/2fa/enable/post.json @@ -2,6 +2,19 @@ "operationId": "enableUser2fa", "summary": "Verify code and enable 2FA", "tags": ["users"], + "parameters": [ + { + "in": "path", + "name": "userID", + "schema": { + "type": "integer", + "minimum": 1 + }, + "required": true, + "description": "User ID", + "example": 2 + } + ], "requestBody": { "description": "Verififcation Payload", "required": true, diff --git a/backend/schema/paths/users/userID/2fa/get.json b/backend/schema/paths/users/userID/2fa/get.json index 52fff724..ff8f9d4a 100644 --- a/backend/schema/paths/users/userID/2fa/get.json +++ b/backend/schema/paths/users/userID/2fa/get.json @@ -7,6 +7,19 @@ "bearerAuth": [] } ], + "parameters": [ + { + "in": "path", + "name": "userID", + "schema": { + "type": "integer", + "minimum": 1 + }, + "required": true, + "description": "User ID", + "example": 2 + } + ], "responses": { "200": { "description": "200 response", diff --git a/backend/schema/paths/users/userID/2fa/post.json b/backend/schema/paths/users/userID/2fa/post.json index bd13c825..cef5d196 100644 --- a/backend/schema/paths/users/userID/2fa/post.json +++ b/backend/schema/paths/users/userID/2fa/post.json @@ -2,6 +2,19 @@ "operationId": "setupUser2fa", "summary": "Start 2FA setup, returns QR code URL", "tags": ["users"], + "parameters": [ + { + "in": "path", + "name": "userID", + "schema": { + "type": "integer", + "minimum": 1 + }, + "required": true, + "description": "User ID", + "example": 2 + } + ], "responses": { "200": { "content": { diff --git a/frontend/src/locale/src/pl.json b/frontend/src/locale/src/pl.json index 8fa3bc33..a5fb2ad0 100644 --- a/frontend/src/locale/src/pl.json +++ b/frontend/src/locale/src/pl.json @@ -41,15 +41,15 @@ "action.allow": { "defaultMessage": "Zezwól" }, - "action.deny": { - "defaultMessage": "Odrzuć" - }, "action.close": { "defaultMessage": "Zamknij" }, "action.delete": { "defaultMessage": "Usuń" }, + "action.deny": { + "defaultMessage": "Odrzuć" + }, "action.disable": { "defaultMessage": "Wyłącz" },