Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

How to add tha Base Url to Django Rest Swagger #681

Open
sudaraka94 opened this issue Jul 28, 2017 · 8 comments · May be fixed by #732
Open

How to add tha Base Url to Django Rest Swagger #681

sudaraka94 opened this issue Jul 28, 2017 · 8 comments · May be fixed by #732

Comments

@sudaraka94
Copy link

sudaraka94 commented Jul 28, 2017

I can't find how to add the Base Url in the swagger
image
Its empty like this

@robvdl
Copy link

robvdl commented Aug 2, 2017

I think it's a bug, I have found this too

@sudaraka94
Copy link
Author

Yeah, I can't find a way

@dezdem0na
Copy link

dezdem0na commented Sep 20, 2017

Perfectionist hell

@ihamzehald
Copy link

same case here!

@djeer
Copy link

djeer commented Jan 10, 2018

I access docs via nginx https proxy and my sample requests is banned by browser because swagger is using http by default. Please add base url to config.
Blocked loading mixed active content http://myapiurl/b2b/departments/

@keyboardWitch
Copy link

yeah, the same question

@kellyi
Copy link

kellyi commented Mar 21, 2019

Hi! I've been trying to set up some Swagger documentation using this library and have encountered the issue described here.

Three things I tried that did not work were:

  • adding a url='whatever' argument to get_swagger_view
  • adding a BASE_PATH='whatever' argument to SWAGGER_SETTINGS
  • adding a BASE_URL='whatever' argument to SWAGGER_SETTINGS

Has anyone discovered a solution that does work to set the BASE_URL value in the Swagger UI?

@zjcnew
Copy link

zjcnew commented Sep 3, 2020

Is this problem still not fixed yet?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
8 participants