This API client was generated by the OpenAPI Generator project. By using the OpenAPI spec from a remote server, you can easily generate an API client.
- API version: 1.2.2
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.CLibcurlClientCodegen For more information, please visit https://lt.hn
You'll need the curl 7.58.0
package in order to build the API. To have code formatted nicely, you also need to have uncrustify version 0.67 or later.
sudo apt remove curl
wget http://curl.haxx.se/download/curl-7.58.0.tar.gz
tar -xvf curl-7.58.0.tar.gz
cd curl-7.58.0/
./configure
make
sudo make install
git clone https://github.com/uncrustify/uncrustify.git
cd uncrustify
mkdir build
cd build
cmake ..
make
sudo make install
This will compile the generated code and create a library in the build folder which has to be linked to the codes where API will be used.
mkdir build
cd build
// To install library to specific location, use following commands
cmake -DCMAKE_INSTALL_PREFIX=/pathtolocation ..
// for normal install use following command
cmake ..
make
sudo make install
Considering the test/source code which uses the API is written in main.c(respective api include is written and all objects necessary are defined and created)
To compile main.c(considering the file is present in build folder) use following command -L - location of the library(not required if cmake with normal installation is performed) -l library name
gcc main.c -L. -llethean_binary_api -o main
Once compiled, you can run it with ./main
Note: You don't need to specify includes for models and include folder separately as they are path linked. You just have to import the api.h file in your code, the include linking will work.
All URIs are relative to http://localhost
Category | Method | HTTP request | Description |
---|---|---|---|
VpnAPI | VpnAPI_startLetheand | GET /letheand/start |
All endpoints do not require authorization.