mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-13 16:03:43 +00:00
* Added cpp-oatpp-client. * Updated pipelines. * Should match formatting now. * Moved includes around. * Ran doc generator.
1.2 KiB
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