https://github.com/emrd/calculator-api-cpp
https://github.com/emrd/calculator-api-cpp
api calculator cpp
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/emrd/calculator-api-cpp
- Owner: EmrD
- Created: 2024-07-31T19:22:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T19:25:46.000Z (almost 2 years ago)
- Last Synced: 2025-01-02T20:44:36.157Z (over 1 year ago)
- Topics: api, calculator, cpp
- Language: C++
- Homepage:
- 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"
```