mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
[CI:DOCS] Update swagger definition of inspect manifest
* Changed reference in swagger to correct struture that was being returned. * Added summary to ManifestAddLibpod to clean up generated web site * Added serve target to Makefile, to aid in debugging generated web site Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -5,6 +5,9 @@ SWAGGER_OUT ?= swagger.yaml
|
||||
validate: ${SWAGGER_OUT}
|
||||
swagger validate ${SWAGGER_OUT}
|
||||
|
||||
serve: ${SWAGGER_OUT}
|
||||
swagger serve -F redoc -p=8080 swagger.yaml
|
||||
|
||||
.PHONY: ${SWAGGER_OUT}
|
||||
${SWAGGER_OUT}:
|
||||
# generate doesn't remove file on error
|
||||
|
@ -25,7 +25,7 @@ type swagInspectPodResponse struct {
|
||||
// swagger:response InspectManifest
|
||||
type swagInspectManifestResponse struct {
|
||||
// in:body
|
||||
Body manifest.List
|
||||
Body manifest.Schema2List
|
||||
}
|
||||
|
||||
// Kill Pod
|
||||
|
@ -81,6 +81,7 @@ func (s *APIServer) registerManifestHandlers(r *mux.Router) error {
|
||||
r.Handle(VersionedPath("/libpod/manifests/{name:.*}/json"), s.APIHandler(libpod.ManifestInspect)).Methods(http.MethodGet)
|
||||
// swagger:operation POST /libpod/manifests/{name:.*}/add manifests ManifestAddLibpod
|
||||
// ---
|
||||
// summary: Add image
|
||||
// description: Add an image to a manifest list
|
||||
// produces:
|
||||
// - application/json
|
||||
|
Reference in New Issue
Block a user