summaryrefslogtreecommitdiff
path: root/pkg/api/server/register_images.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/server/register_images.go')
-rw-r--r--pkg/api/server/register_images.go25
1 files changed, 20 insertions, 5 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go
index 4a46b6ee6..98858dac2 100644
--- a/pkg/api/server/register_images.go
+++ b/pkg/api/server/register_images.go
@@ -691,34 +691,49 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error {
// 500:
// $ref: '#/responses/InternalError'
r.Handle(VersionedPath("/libpod/images/import"), APIHandler(s.Context, libpod.ImagesImport)).Methods(http.MethodPost)
- // swagger:operation GET /libpod/images/pull libpod libpodImagesPull
+ // swagger:operation POST /libpod/images/pull libpod libpodImagesPull
// ---
// tags:
// - images
- // summary: Import image
- // description: Import a previosly exported image as a tarball.
+ // 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)/
+ // 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
// 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.MethodPost)
+ r.Handle(VersionedPath("/libpod/images/pull"), APIHandler(s.Context, libpod.ImagesPull)).Methods(http.MethodPut)
// swagger:operation POST /libpod/images/prune libpod libpodPruneImages
// ---
// tags: