diff options
author | Jhon Honce <jhonce@redhat.com> | 2021-04-05 17:13:15 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2021-04-05 19:54:30 -0700 |
commit | fa47b4f572862e5ee8f89d73a1a48c83b9fe9f96 (patch) | |
tree | 853362d78cf607be07b18d0ef6958ecf243bbdc8 /pkg/api/server/register_system.go | |
parent | 5cbda3b789a89cca1a884df97887c99b9eef192f (diff) | |
download | podman-fa47b4f572862e5ee8f89d73a1a48c83b9fe9f96.tar.gz podman-fa47b4f572862e5ee8f89d73a1a48c83b9fe9f96.tar.bz2 podman-fa47b4f572862e5ee8f89d73a1a48c83b9fe9f96.zip |
[CI:DOCS] Set all operation id to be compatibile
Libpod operation id's changed to better match compatibile id
Builds on https://github.com/containers/podman/pull/9123 and corrects
a duplicated ID.
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api/server/register_system.go')
-rw-r--r-- | pkg/api/server/register_system.go | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/pkg/api/server/register_system.go b/pkg/api/server/register_system.go index 7bc16acc0..739daf7a6 100644 --- a/pkg/api/server/register_system.go +++ b/pkg/api/server/register_system.go @@ -9,10 +9,23 @@ import ( ) func (s *APIServer) registerSystemHandlers(r *mux.Router) error { + // swagger:operation GET /system/df compat SystemDataUsage + // --- + // tags: + // - system (compat) + // summary: Show disk usage + // description: Return information about disk usage for containers, images, and volumes + // produces: + // - application/json + // responses: + // 200: + // $ref: '#/responses/SystemDiskUse' + // 500: + // $ref: "#/responses/InternalError" r.Handle(VersionedPath("/system/df"), s.APIHandler(compat.GetDiskUsage)).Methods(http.MethodGet) // Added non version path to URI to support docker non versioned paths r.Handle("/system/df", s.APIHandler(compat.GetDiskUsage)).Methods(http.MethodGet) - // swagger:operation POST /libpod/system/prune libpod pruneSystem + // swagger:operation POST /libpod/system/prune libpod SystemPruneLibpod // --- // tags: // - system @@ -27,7 +40,7 @@ func (s *APIServer) registerSystemHandlers(r *mux.Router) error { // 500: // $ref: "#/responses/InternalError" r.Handle(VersionedPath("/libpod/system/prune"), s.APIHandler(libpod.SystemPrune)).Methods(http.MethodPost) - // swagger:operation GET /libpod/system/df libpod df + // swagger:operation GET /libpod/system/df libpod SystemDataUsageLibpod // --- // tags: // - system |