Skip to content

An asio http client to consume api's that use json as a transportation method

Notifications You must be signed in to change notification settings

rodjjo/cpp-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async C++ JSON API Client

Build and test

Install the building tools

sudo apt-get update
sudo apt-get install -y build-essential cmake lcov python3-pip
sudo pip3 install setuptools pre-commit

Install the dependencies:

sudo apt-get update
sudo apt-get install -y libboost1.62-all-dev libfltk1.3-dev libjsoncpp-dev

Install pre-commit

pre-commit install

Generate and build the project

cmake .
cmake --build .

Run the tests

make test
# or
make CTEST_OUTPUT_ON_FAILURE=1 test

Coverage

cmake -DCMAKE_BUILD_TYPE=Debug .
make coverage

Show coverage report

# you can replace firefox browser if you want to
firefox coverage/index.html

Linting Checks

make lint

Colaborate

Please follow the style guide: https://google.github.io/styleguide/cppguide.html

Usage

TODO

Implement a request timeout

About

An asio http client to consume api's that use json as a transportation method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published