diff options
author | Ryan Goodfellow <rgoodfel@isi.edu> | 2021-01-19 20:23:02 -0800 |
---|---|---|
committer | Ryan Goodfellow <rgoodfel@isi.edu> | 2021-01-21 15:41:44 -0800 |
commit | 2fa67fe4b060eed870eada35e73c64559170626a (patch) | |
tree | 6835dc973f707d56f70c614d2468bdbfa3cba7a1 /pkg | |
parent | 6fd83de31dab0c60932972c6b26f68fa0bd1871f (diff) | |
download | podman-2fa67fe4b060eed870eada35e73c64559170626a.tar.gz podman-2fa67fe4b060eed870eada35e73c64559170626a.tar.bz2 podman-2fa67fe4b060eed870eada35e73c64559170626a.zip |
api: fix import image swagger definition
The podman API implementation only accepts image uploads with the
applicatoin/x-tar content type, however the generated swagger
documentation currently states this should be a form encoded file with
the content type application/x-www-form-urlencoded which does not work.
Signed-off-by: Ryan Goodfellow <rgoodfel@isi.edu>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/api/server/register_images.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg/api/server/register_images.go b/pkg/api/server/register_images.go index 8d0c0800b..358f7126b 100644 --- a/pkg/api/server/register_images.go +++ b/pkg/api/server/register_images.go @@ -837,13 +837,16 @@ func (s *APIServer) registerImagesHandlers(r *mux.Router) error { // name: url // description: Load image from the specified URL // type: string - // - in: formData + // - in: body // name: upload - // type: file // required: true // description: tarball for imported image + // schema: + // type: "string" // produces: // - application/json + // consumes: + // - application/x-tar // responses: // 200: // $ref: "#/responses/DocsLibpodImagesImportResponse" |