docs(gateway): updated swagger doc

Signed-off-by: Klagarge <remi@heredero.ch>
This commit is contained in:
2025-04-15 10:46:01 +02:00
parent 6d8d0698da
commit aba1ea9264
4 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ import (
// Command represents the structure of the command to be published // Command represents the structure of the command to be published
// @Description Command structure for publishing // @Description Command structure for publishing
type Command struct { type Command struct {
Command string `json:"command" example:"UP" binding:"required"` Command string `json:"command" example:"MEASURE_NEW" binding:"required"`
} }
// @Summary Publish command // @Summary Publish command

View File

@@ -184,7 +184,7 @@ const docTemplate = `{
"properties": { "properties": {
"command": { "command": {
"type": "string", "type": "string",
"example": "UP" "example": "MEASURE_NEW"
} }
} }
} }

View File

@@ -178,7 +178,7 @@
"properties": { "properties": {
"command": { "command": {
"type": "string", "type": "string",
"example": "UP" "example": "MEASURE_NEW"
} }
} }
} }

View File

@@ -7,7 +7,7 @@ definitions:
description: Command structure for publishing description: Command structure for publishing
properties: properties:
command: command:
example: UP example: MEASURE_NEW
type: string type: string
required: required:
- command - command