Kraust 5b8a11546c
[C++] [Client] Added cpp-oatpp-client (#21711)
* Added cpp-oatpp-client.

* Updated pipelines.

* Should match formatting now.

* Moved includes around.

* Ran doc generator.
2025-08-07 10:01:55 +08:00

1.2 KiB

REST API Client for OpenAPI Petstore

Overview

This API Client was generated by the OpenAPI Generator project. It uses the Oat++ Framework.

Files organization

The Oat++ C++ REST client generator creates two folders:

  • api: This folder contains the handlers for each method specified in the OpenAPI definition. Every handler extracts the path and parameters (if any) from the request issue them against the server.
  • model: This folder contains the corresponding class for every object schema found in the OpenAPI specification.

The main folder contains also a file with a main that can be used to issue REST requests through the client. Of course, is you should customize this file based on your needs

Installation

First of all, you need to download and install the libraries listed here.

Once the libraries are installed, in order to compile and run the client please follow the steps below:

mkdir build
cd build
cmake ..
make

Once compiled run the client:

cd build
./api-client

Libraries required

Namespaces

org.openapitools.client.api org.openapitools.client.model