coding-kitties / flask-swagger-generator

A simple to use flask swagger generator working with the Flask web framework.
MIT License
6 stars 6 forks source link

There is no option to add server URL #24

Closed fizaashraf37 closed 1 year ago

fizaashraf37 commented 1 year ago

Currently server URL is static and is set to ‘/’ . User do not have any option to set this to custom value.

e.g. user should be able to add it like this:

SERVER_URL = "http://localhost:8080"
generator.generate_swagger(app, 
                   destination_path=API_URL, 
                   server_url = SERVER_URL)
fizaashraf37 commented 1 year ago

I have created a feature branch for this issue and have also created PR#25