-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # 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
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 ? |
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 <sauravazad@in.ibm.com> Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
Addressed in #3538 |
# for free
to join this conversation on GitHub.
Already have an account?
# 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 .
![image](https://private-user-images.githubusercontent.com/3856934/333953155-845a9dcb-baf5-4754-a3aa-27475d30ebf9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNDE5MDYsIm5iZiI6MTczOTA0MTYwNiwicGF0aCI6Ii8zODU2OTM0LzMzMzk1MzE1NS04NDVhOWRjYi1iYWY1LTQ3NTQtYTNhYS0yNzQ3NWQzMGViZjkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDhUMTkwNjQ2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTRiNzAzZTE1MWVmNzg4MDRmMzIxNTg1YTk2Y2ZkZTdhYjQzZGYyZGE4OTQ4OWUyMWFhZTM5NzNjOTUwYzY5YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.fSpVXs8bbeRpgRMEZRKPc1m7aY-j-bOshJ3v1BqmmI0)
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: