From 975c740272afd2e99507369a0ed4d3365b427060 Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sun, 26 Oct 2025 14:42:55 +0100 Subject: [PATCH] Add API key security definitions to Swagger documentation --- docs/docs.go | 7 +++++++ docs/swagger.json | 7 +++++++ docs/swagger.yaml | 5 +++++ 3 files changed, 19 insertions(+) diff --git a/docs/docs.go b/docs/docs.go index 69fa95e..79b2853 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1565,6 +1565,13 @@ const docTemplate = `{ } } } + }, + "securityDefinitions": { + "ApiKeyAuth": { + "type": "apiKey", + "name": "X-API-Key", + "in": "header" + } } }` diff --git a/docs/swagger.json b/docs/swagger.json index 885800a..30bde64 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1558,5 +1558,12 @@ } } } + }, + "securityDefinitions": { + "ApiKeyAuth": { + "type": "apiKey", + "name": "X-API-Key", + "in": "header" + } } } \ No newline at end of file diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 8caf401..9eec8a9 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1006,4 +1006,9 @@ paths: summary: Get llamactl version tags: - version +securityDefinitions: + ApiKeyAuth: + in: header + name: X-API-Key + type: apiKey swagger: "2.0"