docs(gateway): updated swagger doc
Signed-off-by: Klagarge <remi@heredero.ch>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -184,7 +184,7 @@ const docTemplate = `{
|
||||
"properties": {
|
||||
"command": {
|
||||
"type": "string",
|
||||
"example": "UP"
|
||||
"example": "MEASURE_NEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
"properties": {
|
||||
"command": {
|
||||
"type": "string",
|
||||
"example": "UP"
|
||||
"example": "MEASURE_NEW"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ definitions:
|
||||
description: Command structure for publishing
|
||||
properties:
|
||||
command:
|
||||
example: UP
|
||||
example: MEASURE_NEW
|
||||
type: string
|
||||
required:
|
||||
- command
|
||||
|
||||
Reference in New Issue
Block a user