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

Problems with basepath when using https #13

Open
sancho2934489 opened this issue May 26, 2016 · 0 comments
Open

Problems with basepath when using https #13

sancho2934489 opened this issue May 26, 2016 · 0 comments

Comments

@sancho2934489
Copy link

When working with https basepath defined as http, it takes from the page api-docs / resources.json. The script swagger_model.py following lines:
base_url = resource_listing.get ( 'basePath')
166 line
I added
if re.search ( "https", resources_url):
base_url = re.sub ( "http", "https", base_url)
then it began to work correctly.

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

No branches or pull requests

1 participant