Qt OpenAPI

The Qt6 OpenAPI generator is a plugin to the OpenAPI generator which allows you to generate clients, servers, and documentation from OpenAPI 2.0/3.x specifications using a variety of programming languages and frameworks.

The Qt6 OpenAPI generator allows you to autogenerate Qt HTTP clients in C++ using Qt Network APIs such as QRestAccessManager.

Using the module

Installation of the following packages is necessary to use the Qt OpenAPI module:

Once you have the required installations, the Qt OpenAPI generator is ready for use within your projects. To generate client code from an OpenAPI specification using the Qt OpenAPI Generator, you should call the qt6_add_openapi_client macro inside your project's CMakeLists.txt file. See Building with CMake for details.

Building with CMake

Examples

Licenses and Attributions