1.0.5 • Published 3 years ago

simp-calc-by-ben v1.0.5

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 years ago

simp-calc

this is a restful api for a simple calculator

getting started

to install it via npm

run

npm i simp-calc-by-ben

to download it

git clone https://gitlab.com/Aurumdev952/ishimwe-mugisha-benjamin.git

usage

run simp-calc to start the server, it should run on url http://localhost:8080/

addition

make a GET request on http://localhost:8080/api/add and provide a JSON object in the body containing the numbers you want to add

example

{
   "numbers": [1, 2, 3, 4, 5]
}

multiplication

make a GET request on http://localhost:8080/api/multiply and provide a JSON object in the body containing the numbers you want to multiply

example

{
   "numbers": [1, 2, 3, 4, 5]
}
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago