-
Notifications
You must be signed in to change notification settings - Fork 761
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
Allow passing baseURL to Swagger.exeute method. #3537
Labels
P2
pull-request-welcome
That the core team don't have the resources, but would welcome a community PR
type: enhancement
Comments
sauravazad
changed the title
Allow passing baseURL for Swagger.exeute .
Allow passing baseURL to Swagger.exeute method.
May 27, 2024
sauravazad
pushed a commit
to sauravazad/swagger-js
that referenced
this issue
May 27, 2024
… computation . Issue: swagger-api#3537
10 tasks
Any comments or thought on the above proposal ? |
ponelat
added
P2
type: enhancement
pull-request-welcome
That the core team don't have the resources, but would welcome a community PR
labels
Oct 18, 2024
Hi @sauravazad, The proposal is reasonable. We're gonna go for it. I'll tend the the PR ASAP. Thank you! |
char0n
added a commit
that referenced
this issue
Nov 7, 2024
Refs #3537 Co-authored-by: Saurav Azad <[email protected]> Co-authored-by: Vladimír Gorej <[email protected]>
Addressed in #3538 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
P2
pull-request-welcome
That the core team don't have the resources, but would welcome a community PR
type: enhancement
Content & configuration
Swagger-Client usage:
Is your feature request related to a problem?
baseURL is computed every time when an execute is invoked .
swagger-js/src/execute/index.js
Line 313 in ee7fdd6
Please have a look at below flame chart .
Building the URL consumes almost 75% of execution time for the executeClient method .
Describe the solution you'd like
If SwaggerClient.execute() were to accept a baseURL , and use it if provided instead of building it , It would help in improving the performance and execution time .
Please let me know if this added support is acceptable . If so, I will raise a PR to add the support.
The text was updated successfully, but these errors were encountered: