allow override of `host` and `basePath`
See original GitHub issueOnce swagger-client is loaded, you cannot easily override the host
or basePath
values as they are copied to each operation. While you can currently iterate over each api + host, it’s a pain.
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
swagger - Override "host" and "basePath" at the "/{path}" level
Overriding the target server at the path or operation level is now supported in OpenAPI 3.0: openapi: 3.0.0 servers: - url: ...
Read more >API Host and Base Path - Swagger
REST APIs have a base URL to which the endpoint paths are appended. The base URL is defined by schemes , host and...
Read more >Running Behind a Reverse Proxy - Sonatype Help
Reverse Proxy Virtual Host at Base Path ... Scenario: You need to expose the repository manager using a custom host name of repo.example.com...
Read more >Set the OpenAPIbasePath property - Amazon API Gateway
In OpenAPI 2.0 , you can use the basePath property to provide one or more path ... and all of the declared API...
Read more >ASP.NET Core Web Host | Microsoft Learn
Set up a host; Host configuration values; Override configuration ... The content root is also used as the base path for the web...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
how could i achieve this setBasePath/setHost functionality here…
Hi @fehguy , which console do you mean? Browser console? Which will show up when F12 key is pressed? I opened the URL you gave and executed the command you showed, to change the basePath, but I’m getting the below error “Uncaught TypeError: Cannot read property ‘api’ of undefined at <anonymous>:1:18 (anonymous) @ VM51:1”
I think I’m executing this in wrong console. which console do you mean?