From aba1ea9264453a73be34176d6f4527657cf59c97 Mon Sep 17 00:00:00 2001 From: Klagarge Date: Tue, 15 Apr 2025 10:46:01 +0200 Subject: [PATCH] docs(gateway): updated swagger doc Signed-off-by: Klagarge --- gateway/src/PublishCommand.go | 2 +- gateway/src/docs/docs.go | 2 +- gateway/src/docs/swagger.json | 2 +- gateway/src/docs/swagger.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gateway/src/PublishCommand.go b/gateway/src/PublishCommand.go index 41e8b6b..528ee20 100644 --- a/gateway/src/PublishCommand.go +++ b/gateway/src/PublishCommand.go @@ -11,7 +11,7 @@ import ( // Command represents the structure of the command to be published // @Description Command structure for publishing type Command struct { - Command string `json:"command" example:"UP" binding:"required"` + Command string `json:"command" example:"MEASURE_NEW" binding:"required"` } // @Summary Publish command diff --git a/gateway/src/docs/docs.go b/gateway/src/docs/docs.go index 9baf7b4..3b790f0 100644 --- a/gateway/src/docs/docs.go +++ b/gateway/src/docs/docs.go @@ -184,7 +184,7 @@ const docTemplate = `{ "properties": { "command": { "type": "string", - "example": "UP" + "example": "MEASURE_NEW" } } } diff --git a/gateway/src/docs/swagger.json b/gateway/src/docs/swagger.json index 9135020..692c210 100644 --- a/gateway/src/docs/swagger.json +++ b/gateway/src/docs/swagger.json @@ -178,7 +178,7 @@ "properties": { "command": { "type": "string", - "example": "UP" + "example": "MEASURE_NEW" } } } diff --git a/gateway/src/docs/swagger.yaml b/gateway/src/docs/swagger.yaml index 6c8f4ad..8747a00 100644 --- a/gateway/src/docs/swagger.yaml +++ b/gateway/src/docs/swagger.yaml @@ -7,7 +7,7 @@ definitions: description: Command structure for publishing properties: command: - example: UP + example: MEASURE_NEW type: string required: - command