- Clone down this repo and
cdinto the directory - Run
npm i - Run
node server.js
- Endpoint:
http://localhost:3001/:operation- Possible values for
operationin endpoint: "add", "subtract", "multiply", "divide"
- Possible values for
- Method:
POST - Headers:
{ Content-Type: "application/json" } - Body:
{ numbers: <array of numbers, any length> } - Example response:
{ equation: "3 / 1", id: 1639434472416, solution: 4 }