diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-02-03 16:47:52 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-02-04 16:39:54 -0700 |
commit | 4bb55161e95d9c28928210b92b9cd2bacaa7768b (patch) | |
tree | 9aa599ce853d3265243f5c7111985d70f2092dfd /pkg/api/server/server.go | |
parent | 5092c078ec635c9f1598989b27ccf53369b3cf2b (diff) | |
download | podman-4bb55161e95d9c28928210b92b9cd2bacaa7768b.tar.gz podman-4bb55161e95d9c28928210b92b9cd2bacaa7768b.tar.bz2 podman-4bb55161e95d9c28928210b92b9cd2bacaa7768b.zip |
Add /swagger/ endpoint to serve swagger yaml to clients
The provided yaml file will describe the current Podman REST API.
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api/server/server.go')
-rw-r--r-- | pkg/api/server/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/server/server.go b/pkg/api/server/server.go index 7bb0f5481..69f04034d 100644 --- a/pkg/api/server/server.go +++ b/pkg/api/server/server.go @@ -113,6 +113,7 @@ func newServer(runtime *libpod.Runtime, duration time.Duration, listener *net.Li server.registerPingHandlers, server.RegisterPluginsHandlers, server.registerPodsHandlers, + server.RegisterSwaggerHandlers, server.RegisterSwarmHandlers, server.registerSystemHandlers, server.registerVersionHandlers, |