summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2020-02-10 12:40:53 +0100
committerValentin Rothberg <rothberg@redhat.com>2020-02-11 13:08:23 +0100
commit13187607e7efd56809dd806765de872e1ccb1826 (patch)
tree2340e6016df823e9eebdbb03d6ca04bf7d5ef0c2
parent185c82bc80705266f4dc2411d31fb1cb461f89c2 (diff)
downloadpodman-13187607e7efd56809dd806765de872e1ccb1826.tar.gz
podman-13187607e7efd56809dd806765de872e1ccb1826.tar.bz2
podman-13187607e7efd56809dd806765de872e1ccb1826.zip
swagger: fix /libpod/images/{import,load,pull}
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
-rw-r--r--pkg/api/server/register_images.go61
1 files changed, 30 insertions, 31 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go
index 8de584b86..f082c5fec 100644
--- a/pkg/api/server/register_images.go
+++ b/pkg/api/server/register_images.go
@@ -639,9 +639,9 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// description: Load an image (oci-archive or docker-archive) stream.
// parameters:
// - in: query
- // name: change
+ // name: reference
// description: "Optional Name[:TAG] for the image"
- // type: reference
+ // type: string
// - in: formData
// name: upload
// description: tarball of container image
@@ -675,9 +675,9 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// description: Set commit message for imported image
// type: string
// - in: query
- // name: change
+ // name: reference
// description: "Optional Name[:TAG] for the image"
- // type: reference
+ // type: string
// - in: query
// name: url
// description: Load image from the specified URL
@@ -704,42 +704,41 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// summary: Pull images
// description: Pull one or more images from a container registry.
// parameters:
- // - in: query
- // name: reference
- // description: Mandatory reference to the image (e.g., quay.io/image/name:tag)
- // type: string
- // - in: query
- // name: credentials
- // description: username:password for the registry.
- // type: string
- // - in: query
- // name: os
- // description: Pull image for the specified operating system.
- // type: string
- // - in: query
- // name: arch
- // description: Pull image for the specified architecture.
- // type: string
- // - in: query
- // name: tls-verify
- // description: Require TLS verification.
- // type: boolean
- // default: true
- // - in: query
- // name: all-tags
- // description: Pull all tagged images in the repository.
- // type: bool
+ // - in: query
+ // name: reference
+ // description: "Mandatory reference to the image (e.g., quay.io/image/name:tag)"
+ // type: string
+ // - in: query
+ // name: credentials
+ // description: "username:password for the registry"
+ // type: string
+ // - in: query
+ // name: overrideOS
+ // description: Pull image for the specified operating system.
+ // type: string
+ // - in: query
+ // name: overrideArch
+ // description: Pull image for the specified architecture.
+ // type: string
+ // - in: query
+ // name: tlsVerify
+ // description: Require TLS verification.
+ // type: boolean
+ // default: true
+ // - in: query
+ // name: allTags
+ // description: Pull all tagged images in the repository.
+ // type: boolean
// produces:
// - application/json
// responses:
// 200:
// $ref: "#/responses/DocsLibpodImagesPullResponse"
- // $ref: "#/response/LibpodImagesPullResponse"
// 400:
// $ref: "#/responses/BadParamError"
// 500:
// $ref: '#/responses/InternalError'
- r.Handle(VersionedPath("/libpod/images/pull"), APIHandler(s.Context, libpod.ImagesPull)).Methods(http.MethodPut)
+ r.Handle(VersionedPath("/libpod/images/pull"), APIHandler(s.Context, libpod.ImagesPull)).Methods(http.MethodPost)
// swagger:operation POST /libpod/images/prune libpod libpodPruneImages
// ---
// tags: