BaseApi: add helpers to handle server configurations


We do not want to use the m_serverConfigs and m_serverIndices maps
outside of the BaseApi class, so add helper methods to set server
configurations for operations and to set a base url for an operation
based on the selected server.

These methods are added as protected, because they're only supposed
to be used in the generated client API classes.

This also eliminates the last usage of m_networkFactory from the
api-body.mustache file.

This commit is a pre-requisite for moving the BaseApi member
variables into a private class.

Found in API review.

Task-number: QTBUG-142312
Pick-to: 6.11
Change-Id: Ia522f1c1c54cd88e03b346e0e0b2a42e5a84c4e9
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commitf122622913005a52dd00ddacae20b90cc81398fd
parentd91fdc91b39f081b93bba865d5db4bf51a41b84b
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeMon, 12 Jan 2026 09:31:51 +0100