[CI:DOCS] Polish swagger OpertionIDs

Renamed 4 IDs to be consistent with other endpoints.

Fixes #9951

Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
Jhon Honce
2021-04-06 09:43:49 -07:00
parent fa47b4f572
commit 51b23be38b
4 changed files with 5 additions and 10 deletions

View File

@ -252,11 +252,6 @@ sub handle_handle {
$tag = 'system'; $tag = 'system';
} }
# Special case: /changes is libpod even though it says compat
if ($endpoint =~ m!/changes!) {
$tag = 'libpod';
}
state $previous_path; # Previous path name, to avoid dups state $previous_path; # Previous path name, to avoid dups
# #

View File

@ -774,7 +774,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
// 500: // 500:
// $ref: "#/responses/InternalError" // $ref: "#/responses/InternalError"
r.HandleFunc(VersionedPath("/libpod/containers/prune"), s.APIHandler(compat.PruneContainers)).Methods(http.MethodPost) r.HandleFunc(VersionedPath("/libpod/containers/prune"), s.APIHandler(compat.PruneContainers)).Methods(http.MethodPost)
// swagger:operation GET /libpod/containers/showmounted libpod ShowMountedContainersLibpod // swagger:operation GET /libpod/containers/showmounted libpod ContainerShowMountedLibpod
// --- // ---
// tags: // tags:
// - containers // - containers
@ -1468,8 +1468,8 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
// 500: // 500:
// $ref: "#/responses/InternalError" // $ref: "#/responses/InternalError"
r.HandleFunc(VersionedPath("/libpod/containers/{name}/restore"), s.APIHandler(libpod.Restore)).Methods(http.MethodPost) r.HandleFunc(VersionedPath("/libpod/containers/{name}/restore"), s.APIHandler(libpod.Restore)).Methods(http.MethodPost)
// swagger:operation GET /containers/{name}/changes libpod ContainerChangesLibpod // swagger:operation GET /containers/{name}/changes compat ContainerChanges
// swagger:operation GET /libpod/containers/{name}/changes compat ContainerChanges // swagger:operation GET /libpod/containers/{name}/changes libpod ContainerChangesLibpod
// --- // ---
// tags: // tags:
// - containers // - containers

View File

@ -8,7 +8,7 @@ import (
) )
func (s *APIServer) registerPlayHandlers(r *mux.Router) error { func (s *APIServer) registerPlayHandlers(r *mux.Router) error {
// swagger:operation POST /libpod/play/kube libpod KubePlayLibpod // swagger:operation POST /libpod/play/kube libpod PlayKubeLibpod
// --- // ---
// tags: // tags:
// - containers // - containers

View File

@ -305,7 +305,7 @@ func (s *APIServer) registerPodsHandlers(r *mux.Router) error {
// 500: // 500:
// $ref: "#/responses/InternalError" // $ref: "#/responses/InternalError"
r.Handle(VersionedPath("/libpod/pods/{name}/top"), s.APIHandler(libpod.PodTop)).Methods(http.MethodGet) r.Handle(VersionedPath("/libpod/pods/{name}/top"), s.APIHandler(libpod.PodTop)).Methods(http.MethodGet)
// swagger:operation GET /libpod/pods/stats pods PodStatsLibpod // swagger:operation GET /libpod/pods/stats pods PodStatsAllLibpod
// --- // ---
// tags: // tags:
// - pods // - pods