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>
This commit is contained in:
parent
6fd83de31d
commit
2fa67fe4b0
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue