From 87a19bfd4e50cc9e19fe2a232a554ee0e3b70685 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Fri, 29 Mar 2024 18:42:53 +0100 Subject: [PATCH] Swagger annotations for JWT key --- backend/main.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/backend/main.go b/backend/main.go index 4c2056e..cf58280 100644 --- a/backend/main.go +++ b/backend/main.go @@ -25,15 +25,16 @@ import ( // @license.name AGPL // @license.url https://www.gnu.org/licenses/agpl-3.0.html -//@securityDefinitions.apikey bererToken -//@in header -//@name Authorization +// @securityDefinitions.apikey JWT +// @in header +// @name Authorization +// @description Use the JWT token provided by the login endpoint to authenticate requests. **Prefix the token with "Bearer ".** // @host localhost:8080 // @BasePath /api -// @externalDocs.description OpenAPI -// @externalDocs.url https://swagger.io/resources/open-api/ +// @externalDocs.description OpenAPI +// @externalDocs.url https://swagger.io/resources/open-api/ /** Main function for starting the server and initializing configurations.