Qt 6.11 is out! See what's new in the release
blog
Change the base server url in OpenAPI generated code at runtime
-
Pretty much what's in the title. I'm trying to use the new OpenAPI client generator from Qt, the API I'm trying to use is not tied to a particular server so I need to be able to set the server base url at runtime. I didn't find a way set it from generated openapi client (tested using Qt 6.11.2). the API documentation is very sparse maybe I missed something.
A possible workaround I can think of would be to patch the openapi yaml to set a server with a template variable for the hostname.