mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
[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:
@ -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
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user