Skip to content
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

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open

Conversation

greedo
Copy link

@greedo greedo commented Feb 20, 2015

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.

screen shot 2015-02-20 at 9 40 44 am

  • HTML doc generation
  • API and Resource Validators
  • HTML jinja example templates

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))
Copy link
Owner

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?

Copy link
Author

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

@hobbeswalsh
Copy link
Owner

I don't think these commits build; did you forget an import somewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants