Can you please tell me how to make the swagger doc clearly display the POST request and response body separately?
For example, suppose I want to implement a POST /myobject with 'input' in the request body and 'output' in the response body. How do I specify this so that swagger distinguishes between them?
The resulting swagger doc when viewing through petstore shows the request body with both the 'input' and 'output' fields, but it does not show a response body.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Can you please tell me how to make the swagger doc clearly display the POST request and response body separately?
For example, suppose I want to implement a POST /myobject with 'input' in the request body and 'output' in the response body. How do I specify this so that swagger distinguishes between them?
I have the following in my settings.py:
The resulting swagger doc when viewing through petstore shows the request body with both the 'input' and 'output' fields, but it does not show a response body.
Thanks in advance for the help, Keith