mirror of https://github.com/containers/podman.git
Merge pull request #5543 from edsantiago/swagger_fixes
swagger: more consistency fixes
This commit is contained in:
commit
c9c95a7e0b
|
|
@ -38,7 +38,7 @@ func (s *APIServer) registerManifestHandlers(r *mux.Router) error {
|
||||||
// 500:
|
// 500:
|
||||||
// $ref: "#/responses/InternalError"
|
// $ref: "#/responses/InternalError"
|
||||||
r.Handle(VersionedPath("/libpod/manifests/create"), s.APIHandler(libpod.ManifestCreate)).Methods(http.MethodPost)
|
r.Handle(VersionedPath("/libpod/manifests/create"), s.APIHandler(libpod.ManifestCreate)).Methods(http.MethodPost)
|
||||||
// swagger:operation GET /libpod/manifests/{name}/json manifests Inspect
|
// swagger:operation GET /libpod/manifests/{name:.*}/json manifests Inspect
|
||||||
// ---
|
// ---
|
||||||
// summary: Inspect
|
// summary: Inspect
|
||||||
// description: Display a manifest list
|
// description: Display a manifest list
|
||||||
|
|
@ -46,7 +46,7 @@ func (s *APIServer) registerManifestHandlers(r *mux.Router) error {
|
||||||
// - application/json
|
// - application/json
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
// name: name
|
// name: name:.*
|
||||||
// type: string
|
// type: string
|
||||||
// required: true
|
// required: true
|
||||||
// description: the name or ID of the manifest
|
// description: the name or ID of the manifest
|
||||||
|
|
@ -58,14 +58,14 @@ func (s *APIServer) registerManifestHandlers(r *mux.Router) error {
|
||||||
// 500:
|
// 500:
|
||||||
// $ref: "#/responses/InternalError"
|
// $ref: "#/responses/InternalError"
|
||||||
r.Handle(VersionedPath("/libpod/manifests/{name:.*}/json"), s.APIHandler(libpod.ManifestInspect)).Methods(http.MethodGet)
|
r.Handle(VersionedPath("/libpod/manifests/{name:.*}/json"), s.APIHandler(libpod.ManifestInspect)).Methods(http.MethodGet)
|
||||||
// swagger:operation POST /libpod/manifests/{name}/add manifests AddManifest
|
// swagger:operation POST /libpod/manifests/{name:.*}/add manifests AddManifest
|
||||||
// ---
|
// ---
|
||||||
// description: Add an image to a manifest list
|
// description: Add an image to a manifest list
|
||||||
// produces:
|
// produces:
|
||||||
// - application/json
|
// - application/json
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
// name: name
|
// name: name:.*
|
||||||
// type: string
|
// type: string
|
||||||
// required: true
|
// required: true
|
||||||
// description: the name or ID of the manifest
|
// description: the name or ID of the manifest
|
||||||
|
|
@ -84,7 +84,7 @@ func (s *APIServer) registerManifestHandlers(r *mux.Router) error {
|
||||||
// 500:
|
// 500:
|
||||||
// $ref: "#/responses/InternalError"
|
// $ref: "#/responses/InternalError"
|
||||||
r.Handle(VersionedPath("/libpod/manifests/{name:.*}/add"), s.APIHandler(libpod.ManifestAdd)).Methods(http.MethodPost)
|
r.Handle(VersionedPath("/libpod/manifests/{name:.*}/add"), s.APIHandler(libpod.ManifestAdd)).Methods(http.MethodPost)
|
||||||
// swagger:operation DELETE /libpod/manifests/{name} manifests RemoveManifest
|
// swagger:operation DELETE /libpod/manifests/{name:.*} manifests RemoveManifest
|
||||||
// ---
|
// ---
|
||||||
// summary: Remove
|
// summary: Remove
|
||||||
// description: Remove an image from a manifest list
|
// description: Remove an image from a manifest list
|
||||||
|
|
@ -92,7 +92,7 @@ func (s *APIServer) registerManifestHandlers(r *mux.Router) error {
|
||||||
// - application/json
|
// - application/json
|
||||||
// parameters:
|
// parameters:
|
||||||
// - in: path
|
// - in: path
|
||||||
// name: name
|
// name: name:.*
|
||||||
// type: string
|
// type: string
|
||||||
// required: true
|
// required: true
|
||||||
// description: the image associated with the manifest
|
// description: the image associated with the manifest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue