From fead884809cfceb95439a5c7e5c1e9ef4d304a6a Mon Sep 17 00:00:00 2001 From: SierraJC <7351311+SierraJC@users.noreply.github.com> Date: Sat, 23 Nov 2024 12:40:22 +1100 Subject: [PATCH] fix: missing `uuid` parameter on server API patch --- app/Http/Controllers/Api/ServersController.php | 3 +++ openapi.json | 11 +++++++++++ openapi.yaml | 8 ++++++++ 3 files changed, 22 insertions(+) diff --git a/app/Http/Controllers/Api/ServersController.php b/app/Http/Controllers/Api/ServersController.php index f5b20c84a..a83e6ed66 100644 --- a/app/Http/Controllers/Api/ServersController.php +++ b/app/Http/Controllers/Api/ServersController.php @@ -567,6 +567,9 @@ class ServersController extends Controller ['bearerAuth' => []], ], tags: ['Servers'], + parameters: [ + new OA\Parameter(name: 'uuid', in: 'path', required: true, description: 'Server UUID', schema: new OA\Schema(type: 'string')), + ], requestBody: new OA\RequestBody( required: true, description: 'Server updated.', diff --git a/openapi.json b/openapi.json index 9c497cb12..2b38923b2 100644 --- a/openapi.json +++ b/openapi.json @@ -5391,6 +5391,17 @@ "summary": "Update", "description": "Update Server.", "operationId": "update-server-by-uuid", + "parameters": [ + { + "name": "uuid", + "in": "path", + "description": "Server UUID", + "required": true, + "schema": { + "type": "string" + } + } + ], "requestBody": { "description": "Server updated.", "required": true, diff --git a/openapi.yaml b/openapi.yaml index 2b4e140d2..d56b19795 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -3671,6 +3671,14 @@ paths: summary: Update description: 'Update Server.' operationId: update-server-by-uuid + parameters: + - + name: uuid + in: path + description: 'Server UUID' + required: true + schema: + type: string requestBody: description: 'Server updated.' required: true