summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_info.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-01-22 10:41:35 -0700
committerJhon Honce <jhonce@redhat.com>2020-01-22 15:17:14 -0700
commitda1186ae639c8101f05e4350986fdab0b1bd3566 (patch)
treedfc8a73189dc16f9f36b3cf9f56f571ccbc4cfc3 /pkg/api/server/register_info.go
parentc42383f70a7832faf1ba920d6c9e169a88b0e4d9 (diff)
downloadpodman-da1186ae639c8101f05e4350986fdab0b1bd3566.tar.gz
podman-da1186ae639c8101f05e4350986fdab0b1bd3566.tar.bz2
podman-da1186ae639c8101f05e4350986fdab0b1bd3566.zip
Enable swagger validation for each PR
* Update swagger:operation's to pass validation * 'name' path parameter now used throughout API * Added #/response/ok for 200 returns, TBD values have been replaced with legal values. Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api/server/register_info.go')
-rw-r--r--pkg/api/server/register_info.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkg/api/server/register_info.go b/pkg/api/server/register_info.go
index a7fb18721..8c50fed7f 100644
--- a/pkg/api/server/register_info.go
+++ b/pkg/api/server/register_info.go
@@ -10,15 +10,17 @@ import (
func (s *APIServer) registerInfoHandlers(r *mux.Router) error {
// swagger:operation GET /info libpod libpodGetInfo
// ---
+ // tags:
+ // - system
// summary: Get info
// description: Returns information on the system and libpod configuration
// produces:
// - application/json
// responses:
- // '200':
+ // 200:
// description: to be determined
- // '500':
- // "$ref": "#/responses/InternalError"
+ // 500:
+ // $ref: "#/responses/InternalError"
r.Handle(VersionedPath("/info"), APIHandler(s.Context, generic.GetInfo)).Methods(http.MethodGet)
return nil
}