From b29c69378dda201b163c9a582faa11b11d1eea22 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 9 Feb 2020 21:08:27 -0500 Subject: [PATCH] Just describe the body in words --- api-daemon/pvcapid/flaskapi.py | 8 ++------ docs/manuals/swagger.json | 13 +------------ 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/api-daemon/pvcapid/flaskapi.py b/api-daemon/pvcapid/flaskapi.py index 645b760e..fd8bcac8 100755 --- a/api-daemon/pvcapid/flaskapi.py +++ b/api-daemon/pvcapid/flaskapi.py @@ -3343,16 +3343,12 @@ class API_Storage_Ceph_Volume_Element_Upload(Resource): def post(self, pool, volume, reqargs): """ Upload a disk image to Ceph volume {volume} in pool {pool} + + The body must be a form body containing a file that is the binary contents of the image. --- tags: - storage / ceph parameters: - - in: query - content: - application/octet-stream: - schema: - type: string - format: binary - in: query name: image_format type: string diff --git a/docs/manuals/swagger.json b/docs/manuals/swagger.json index aa68e0d1..38efc153 100644 --- a/docs/manuals/swagger.json +++ b/docs/manuals/swagger.json @@ -4693,19 +4693,8 @@ }, "/api/v1/storage/ceph/volume/{pool}/{volume}/upload": { "post": { - "description": "", + "description": "
The body must be a form body containing a file that is the binary contents of the image.", "parameters": [ - { - "content": { - "application/octet-stream": { - "schema": { - "format": "binary", - "type": "string" - } - } - }, - "in": "query" - }, { "description": "The type of source image file", "enum": [