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

Issue#24 - New Feature - Option to add Server URL #25

Closed fizaashraf37 closed 1 year ago

fizaashraf37 commented 1 year ago

Issue#24

User can now add custom Sever URL:

Example:

SERVER_URL = "http://localhost:8080"
generator.generate_swagger(app, 
                destination_path="/static/swagger.yaml", 
                server_url="http://localhost:8080"
)
MDUYN commented 1 year ago

Thanks @fizaashraf37. Maybe you can add this to the develop branch and add some tests

fizaashraf37 commented 1 year ago

Test case has been added. I have also Refactored Tests code to make it more generic and reusable.