<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Change the base server url in OpenAPI generated code at runtime]]></title><description><![CDATA[<p dir="auto">Pretty much what's in the title. I'm trying to use the <a href="https://doc.qt.io/qt-6/qtopenapi-index.html" target="_blank" rel="noopener noreferrer nofollow ugc">new OpenAPI</a> 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.</p>
<p dir="auto">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.</p>
]]></description><link>https://forum.qt.io/topic/165113/change-the-base-server-url-in-openapi-generated-code-at-runtime</link><generator>RSS for Node</generator><lastBuildDate>Tue, 29 Sep 2026 01:10:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/165113.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Sep 2026 08:59:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Change the base server url in OpenAPI generated code at runtime on Mon, 28 Sep 2026 20:45:29 GMT]]></title><description><![CDATA[<p dir="auto">Add a <code>servers</code> block to the YAML with a template variable for the hostname (exactly as the poster suggested), re-run <code>qt_add_openapi_client</code>, and then search the header files.</p>
]]></description><link>https://forum.qt.io/post/840301</link><guid isPermaLink="true">https://forum.qt.io/post/840301</guid><dc:creator><![CDATA[Nils Sjoberg]]></dc:creator><pubDate>Mon, 28 Sep 2026 20:45:29 GMT</pubDate></item></channel></rss>