A simple API to do math calculation.
Realize an addition.
-
URL:
/add
-
Method:
GET
-
URL Param:
require:
a=[number]
b=[number]
-
Success Response:
Code:
200 OK
Content:
[number]
-
Error Response:
Code:
400 Bad Request
Content: None
Realize a substraction.
-
URL:
/sub
-
Method:
GET
-
URL Param:
require:
a=[number]
b=[number]
-
Success Response:
Code:
200 OK
Content:
[number]
-
Error Response:
Code:
400 Bad Request
Content: None
Realize a division.
-
URL:
/div
-
Method:
GET
-
URL Param:
require:
a=[number]
b=[number]
-
Success Response:
Code:
200 OK
Content:
[number]
-
Error Response:
Code:
400 Bad Request
Content: None
Realize a multiplication.
-
URL:
/mul
-
Method:
GET
-
URL Param:
require:
a=[number]
b=[number]
-
Success Response:
Code:
200 OK
Content:
[number]
-
Error Response:
Code:
400 Bad Request
Content: None