diff --git a/src/api-engine/api/routes/agent/views.py b/src/api-engine/api/routes/agent/views.py index 91e3b1598..6f2739d14 100644 --- a/src/api-engine/api/routes/agent/views.py +++ b/src/api-engine/api/routes/agent/views.py @@ -118,7 +118,7 @@ def list(self, request): ) @swagger_auto_schema( - manual_parameters=AgentCreateBody().to_form_paras(), + request_body=AgentCreateBody, responses=with_common_response( {status.HTTP_201_CREATED: AgentIDSerializer} ), diff --git a/src/api-engine/api/routes/file/views.py b/src/api-engine/api/routes/file/views.py index 95abb8742..21446c536 100644 --- a/src/api-engine/api/routes/file/views.py +++ b/src/api-engine/api/routes/file/views.py @@ -89,7 +89,7 @@ def list(self, request): ) @swagger_auto_schema( - manual_parameters=FileCreateSerializer().to_form_paras(), + request_body=FileCreateSerializer, responses=with_common_response( {status.HTTP_201_CREATED: FileIDSerializer} ), diff --git a/src/api-engine/api/routes/node/views.py b/src/api-engine/api/routes/node/views.py index 114694651..da6885737 100644 --- a/src/api-engine/api/routes/node/views.py +++ b/src/api-engine/api/routes/node/views.py @@ -426,7 +426,7 @@ def update(self, request, pk=None): @swagger_auto_schema( methods=["post"], - manual_parameters=NodeFileCreateSerializer().to_form_paras(), + request_body=NodeFileCreateSerializer, responses=with_common_response({status.HTTP_202_ACCEPTED: "Accepted"}), ) @action(methods=["post"], detail=True, url_path="files", url_name="files")