django-rest-swagger icon indicating copy to clipboard operation
django-rest-swagger copied to clipboard

How to add tha Base Url to Django Rest Swagger

Open sudaraka94 opened this issue 6 years ago • 8 comments

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

sudaraka94 avatar Jul 28 '17 09:07 sudaraka94

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

robvdl avatar Aug 02 '17 02:08 robvdl

Yeah, I can't find a way

sudaraka94 avatar Aug 02 '17 03:08 sudaraka94

Perfectionist hell

dezdem0na avatar Sep 20 '17 09:09 dezdem0na

same case here!

ihamzehald avatar Dec 13 '17 09:12 ihamzehald

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/

djeer avatar Jan 10 '18 13:01 djeer

yeah, the same question

keyboardWitch avatar Mar 23 '18 05:03 keyboardWitch

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?

kellyi avatar Mar 21 '19 14:03 kellyi

Is this problem still not fixed yet?

zjcnew avatar Sep 03 '20 06:09 zjcnew