-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger HTML doc rendering #15
base: master
Are you sure you want to change the base?
Conversation
url = os.environ.get("URL", "localhost:5000") | ||
registry = SwaggerApiRegistry(app, baseurl="http://{}/api/v1".format(url)) | ||
registry = SwaggerApiRegistry(app, baseurl="http://localhost:5000/api/v1".format(url)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm... are you sure this is right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, url = os.environ.get("URL", "localhost:5000")
should take care of this
Added some features, tests
updating requirements
Fix an typo in README.rst
"import flask.ext.sillywalk.compat" was deprecated in favor of "import flask_sillywalk.compat"
Use Flasks Response object to properly return the content type of .json resources.
Fix deprecated import style
I don't think these commits build; did you forget an import somewhere? |
Many times you want to render html documentation for your API. This allows you to using the data from the same decorators using to generate
swagger
json.