Skip to content

Problems with basepath when using https #13

Description

@sancho2934489

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions