Skip to content

Commit

Permalink
Merge pull request #133
Browse files Browse the repository at this point in the history
fix(swagger): disable manual parameter for swagger doc
  • Loading branch information
hightall authored Apr 28, 2020
2 parents 32a915a + 74be4e6 commit 856a5af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api-engine/api/routes/agent/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
),
Expand Down
2 changes: 1 addition & 1 deletion src/api-engine/api/routes/file/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
),
Expand Down
2 changes: 1 addition & 1 deletion src/api-engine/api/routes/node/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 856a5af

Please sign in to comment.