Skip to content

Commit

Permalink
Merge pull request #9966 from jwhonce/wip/operation_id
Browse files Browse the repository at this point in the history
[CI:DOCS] Update swagger definition of inspect manifest
  • Loading branch information
openshift-merge-robot authored Apr 7, 2021
2 parents f44645a + 9b35262 commit 5994377
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkg/api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handlers/libpod/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type swagInspectPodResponse struct {
// swagger:response InspectManifest
type swagInspectManifestResponse struct {
// in:body
Body manifest.List
Body manifest.Schema2List
}

// Kill Pod
Expand Down
1 change: 1 addition & 0 deletions pkg/api/server/register_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5994377

Please sign in to comment.