diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index 7c481e46..4ed73d30 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -3347,6 +3347,12 @@ class API_Storage_Ceph_Volume_Element_Upload(Resource): tags: - storage / ceph parameters: + - in: requestBody + content: + application/octet-stream: + schema: + type: string + format: binary - in: query name: image_format type: string @@ -3359,11 +3365,6 @@ class API_Storage_Ceph_Volume_Element_Upload(Resource): - qed - vdi - vpc - - in: formdata - name: file - type: binary - required: true - description: The raw binary contents of the file responses: 200: description: OK diff --git a/docs/manuals/swagger.json b/docs/manuals/swagger.json index 475782a6..76b006d9 100644 --- a/docs/manuals/swagger.json +++ b/docs/manuals/swagger.json @@ -4695,6 +4695,17 @@ "post": { "description": "", "parameters": [ + { + "content": { + "application/octet-stream": { + "schema": { + "format": "binary", + "type": "string" + } + } + }, + "in": "requestBody" + }, { "description": "The type of source image file", "enum": [ @@ -4709,13 +4720,6 @@ "name": "image_format", "required": true, "type": "string" - }, - { - "description": "The raw binary contents of the file", - "in": "formdata", - "name": "file", - "required": true, - "type": "binary" } ], "responses": {