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

Support Multiple servers #113

Closed
FilipeSoares-TomTom opened this issue Feb 8, 2024 · 0 comments
Closed

Support Multiple servers #113

FilipeSoares-TomTom opened this issue Feb 8, 2024 · 0 comments
Labels
C++ 🐺 This issue affects the zswag C++ client. Docs 📜 Improvements or additions to documentation Python 🐍 This issue affects the zswag Python client.
Milestone

Comments

@FilipeSoares-TomTom
Copy link

FilipeSoares-TomTom commented Feb 8, 2024

Currently, the OAClient does not allow to choose which server it uses, but rather it uses the last value of the server list.
This behavior may be seem on the following code:
https://github.com/ndsev/zswag/blob/master/libs/zswagcl/src/openapi-parser.cpp#L402-L403

Where it will iterate over all servers and override the value of config.uri.

However, it would be a good feature to have where one may choose which uri should be used. This could be introduced as a number where the user may be able to inform which server they want to use.

e.g.: if in the creation of a OAClient we have, in its constructor, the parameter "serverNumber" with value 1. the config.uri that used would be the one reflected under the server found on the array space 1

@josephbirkner josephbirkner added Docs 📜 Improvements or additions to documentation C++ 🐺 This issue affects the zswag C++ client. Python 🐍 This issue affects the zswag Python client. labels Feb 8, 2024
@josephbirkner josephbirkner added this to the 1.7.0 milestone Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ 🐺 This issue affects the zswag C++ client. Docs 📜 Improvements or additions to documentation Python 🐍 This issue affects the zswag Python client.
Projects
None yet
Development

No branches or pull requests

2 participants