Skip to content

Commit

Permalink
updated swagger doc http
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFireMike committed May 5, 2021
1 parent 554e039 commit e5fdc53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/network/connection_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ type SNMPCredentials struct {
type HTTPConnectionData struct {
// The http port(s) of the device.
//
// example: 80
// example: [80]
HTTPPorts []int `json:"http_ports" xml:"http_ports" yaml:"http_ports"`
// The https port(s) of the device.
//
// example: 443
// example: [443]
HTTPSPorts []int `json:"https_ports" xml:"https_ports" yaml:"https_ports"`
// The username for authorization on the device.
//
Expand Down
8 changes: 6 additions & 2 deletions doc/api_doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,9 @@
"format": "int64"
},
"x-go-name": "HTTPPorts",
"example": "80"
"example": [
80
]
},
"https_ports": {
"description": "The https port(s) of the device.",
Expand All @@ -1657,7 +1659,9 @@
"format": "int64"
},
"x-go-name": "HTTPSPorts",
"example": "443"
"example": [
443
]
}
},
"x-go-package": "github.com/inexio/thola/core/network"
Expand Down

0 comments on commit e5fdc53

Please sign in to comment.