diff options
author | baude <bbaude@redhat.com> | 2020-10-08 09:47:07 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2020-10-08 11:55:47 -0500 |
commit | 78a06c2802ec7bb91607bb80cdb57ae3f639b448 (patch) | |
tree | f89ed45636cd8181d4d817fd6d27dd46662acae6 /pkg/api/server | |
parent | 59b5f0ac32ddf615fada021bc62c823bb73233da (diff) | |
download | podman-78a06c2802ec7bb91607bb80cdb57ae3f639b448.tar.gz podman-78a06c2802ec7bb91607bb80cdb57ae3f639b448.tar.bz2 podman-78a06c2802ec7bb91607bb80cdb57ae3f639b448.zip |
add compatibility endpoint for exporting multiple images
with the recent inclusion of dealing with multiple images in a tar archive, we can now add a compatibility endpoint that was missing images/get?names=one,two.
Fixes: #7950
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/api/server')
-rw-r--r-- | pkg/api/server/register_images.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go index cb0d26d1e..ad779203d 100644 --- a/pkg/api/server/register_images.go +++ b/pkg/api/server/register_images.go @@ -275,6 +275,31 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { r.Handle(VersionedPath("/images/{name:.*}/get"), s.APIHandler(compat.ExportImage)).Methods(http.MethodGet) // Added non version path to URI to support docker non versioned paths r.Handle("/images/{name:.*}/get", s.APIHandler(compat.ExportImage)).Methods(http.MethodGet) + // swagger:operation GET /images/get compat get + // --- + // tags: + // - images (compat) + // summary: Export several images + // description: Get a tarball containing all images and metadata for several image repositories + // parameters: + // - in: query + // name: names + // type: string + // required: true + // description: one or more image names or IDs comma separated + // produces: + // - application/json + // responses: + // 200: + // description: no error + // schema: + // type: string + // format: binary + // 500: + // $ref: '#/responses/InternalError' + r.Handle(VersionedPath("/images/get"), s.APIHandler(compat.ExportImages)).Methods(http.MethodGet) + // Added non version path to URI to support docker non versioned paths + r.Handle("/images/get", s.APIHandler(compat.ExportImages)).Methods(http.MethodGet) // swagger:operation GET /images/{name:.*}/history compat imageHistory // --- // tags: |