https://github.com/rodjjo/cpp-api-client
An asio http client to consume api's that use json as a transportation method
https://github.com/rodjjo/cpp-api-client
Last synced: 3 months ago
JSON representation
An asio http client to consume api's that use json as a transportation method
- Host: GitHub
- URL: https://github.com/rodjjo/cpp-api-client
- Owner: rodjjo
- Created: 2020-05-01T02:21:06.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T02:22:24.000Z (about 5 years ago)
- Last Synced: 2025-01-11T12:45:24.782Z (5 months ago)
- Language: C++
- Homepage:
- Size: 141 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Async C++ JSON API Client
## Build and test
Install the building tools
```bash
sudo apt-get update
sudo apt-get install -y build-essential cmake lcov python3-pip
sudo pip3 install setuptools pre-commit
```Install the dependencies:
```bash
sudo apt-get update
sudo apt-get install -y libboost1.62-all-dev libfltk1.3-dev libjsoncpp-dev
```Install pre-commit
```bash
pre-commit install
```Generate and build the project
```bash
cmake .
cmake --build .
```Run the tests
```bash
make test
# or
make CTEST_OUTPUT_ON_FAILURE=1 test
```Coverage
```bash
cmake -DCMAKE_BUILD_TYPE=Debug .
make coverage
```Show coverage report
```bash
# you can replace firefox browser if you want to
firefox coverage/index.html
```Linting Checks
```bash
make lint
```## Colaborate
Please follow the style guide:
https://google.github.io/styleguide/cppguide.html## Usage
## TODO
Implement a request timeout