summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_version.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-09 23:04:23 +0200
committerGitHub <noreply@github.com>2020-05-09 23:04:23 +0200
commit3ff96383f306cecfeed75986078144ad757e3d70 (patch)
tree301a71ee7621be9d6bfd1b77552c1574f5fc18d2 /pkg/api/server/register_version.go
parent2a6487c4aaa312e9284d223540e971b109d0fcf2 (diff)
parent931bd5ace6d6efa19e0b123d8d70b273ea79d5ab (diff)
downloadpodman-3ff96383f306cecfeed75986078144ad757e3d70.tar.gz
podman-3ff96383f306cecfeed75986078144ad757e3d70.tar.bz2
podman-3ff96383f306cecfeed75986078144ad757e3d70.zip
Merge pull request #6148 from jwhonce/wip/version
V2 Implement tunnelled podman version
Diffstat (limited to 'pkg/api/server/register_version.go')
-rw-r--r--pkg/api/server/register_version.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/pkg/api/server/register_version.go b/pkg/api/server/register_version.go
index 25cacbc61..30289ffe3 100644
--- a/pkg/api/server/register_version.go
+++ b/pkg/api/server/register_version.go
@@ -8,7 +8,28 @@ import (
)
func (s *APIServer) registerVersionHandlers(r *mux.Router) error {
+ // swagger:operation GET /version compat CompatSystemVersion
+ // ---
+ // summary: Component Version information
+ // tags:
+ // - system (compat)
+ // produces:
+ // - application/json
+ // responses:
+ // 200:
+ // $ref: "#/responses/Version"
r.Handle("/version", s.APIHandler(compat.VersionHandler)).Methods(http.MethodGet)
r.Handle(VersionedPath("/version"), s.APIHandler(compat.VersionHandler)).Methods(http.MethodGet)
+ // swagger:operation GET /libpod/version libpod SystemVersion
+ // ---
+ // summary: Component Version information
+ // tags:
+ // - system
+ // produces:
+ // - application/json
+ // responses:
+ // 200:
+ // $ref: "#/responses/Version"
+ r.Handle(VersionedPath("/libpod/version"), s.APIHandler(compat.VersionHandler)).Methods(http.MethodGet)
return nil
}