spdx-online-tools
spdx-online-tools copied to clipboard
Add support for API documentation
This PR adds support for API documentation with the help of drf-yasg library.
@Ugtan How will this generate swagger specs? Can we host the file on github repo/wiki in some way?
This will generate the api documentation on app/swagger and app/redoc endpoint. I don't think so there is any other way to generate it on wiki rather than writing it manually. @rtgdk
@Ugtan ping
@goneall @Ugtan Not merging this to python3 as it doesn't provide any value right now. The swagger spec generated are empty. Maybe we need to rethink where to provide the API request and response structure. drf-yasf doesn't seem to pick up parameters from views.py. Maybe I am missing something here. Open to suggestions on what to do next.