Add Base Url to Django Rest Swagger -
i can't find way add base url django
rest swagger
. tried adding
swagger_settings = { "base_path": 'localhost:62090/', }
to settings.py
. not working.
i couldn't find way display base url in swagger ui, add base url in urls.py
schema_view = get_swagger_view(title='pastebin api',url='/pastebin/')
this code adds base url between host , url u specified.
Comments
Post a Comment