A math web API to perform some calculations.
Example:
curl -X 'POST' \
'https://localhost:7283/evaluate' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"expression": "25*(3-2)^2"
}'You can pass your math expression in the body
{
"expression": "25*(3-2)^2"
}and you will get the response
{
"expression": "25*(3-2)^2",
"result": 25
}Example:
curl -X 'POST' \
'https://localhost:7283/variables' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "x",
"value": 5
}'You can pass your math expression in the body
{
"name": "x",
"value": 5
}curl -X 'POST' \
'https://localhost:7283/evaluate' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"expression": "x*2+1"
}'You can pass your math expression in the body
{
"expression": "x*2+1"
}and you will get the response
{
"expression": "x*2+1",
"result": 11
}