Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emrd/calculator-api-cpp
https://github.com/emrd/calculator-api-cpp
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/emrd/calculator-api-cpp
- Owner: EmrD
- Created: 2024-07-31T19:22:58.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-31T19:25:46.000Z (4 months ago)
- Last Synced: 2024-07-31T23:33:15.809Z (4 months ago)
- Language: C++
- Size: 351 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C++ API Service Starter
This is a C++ API service starter project.
## Getting Started
To start the service locally, run:
```sh
g++ -o calculator-api main.cpp -std=c++11
./calculator-api
```## Local Test
To test the service; you can use cURL requests.
```sh
curl "http://localhost:8080/add?a=5&b=3"
curl "http://localhost:8080/subtract?a=10&b=4"
curl "http://localhost:8080/multiply?a=2&b=7"
curl "http://localhost:8080/divide?a=20&b=5"
```