I have search so many sites,even document but cannot find a complete steps to create swagger for function based views in django. Thanks in advance
Asked
Active
Viewed 389 times
0
-
Possible duplicate of https://stackoverflow.com/questions/43627748/django-rest-framework-how-to-enable-swagger-docs-for-function-based-views – Sachin Nov 23 '18 at 09:59
-
but i need a step by step guide. I am facing problem in POST api. I cannot display the input parameter in swagger UI – Anirudh Jaiswal Nov 23 '18 at 10:02
-
You can find various tutorials for setting up the swagger first. Then you can use the question link mentioned in the above comment to setup for function based views. – Sachin Nov 23 '18 at 10:03
-
I checked and setup the swagger. my swagger UI is up and running and i am facing problem in the input parameters of the POST api. and also in url.py how to set the schema – Anirudh Jaiswal Nov 23 '18 at 10:06
-
[This](https://stackoverflow.com/a/50629381/5312750) can help. – Sachin Nov 23 '18 at 10:08
-
will check and get back to you @SachinKukreja – Anirudh Jaiswal Nov 23 '18 at 10:12
-
this helps. but how can i display file upload ? i have to provide a csv file to the rest api – Anirudh Jaiswal Nov 23 '18 at 12:46
-
guys, can you help? – Anirudh Jaiswal Nov 25 '18 at 10:42