This is Beginners Friendly Flask Application which does the basic arithmetic operations (+,-,*,/)
Visit the Docker Hub to see more containers
docker pull santhoshkdhana/flask-calculator-beginner:latest
docker container run -d -p 5000:5000 --name=santyflask flask-calculator-beginner
The container will expose port 5000
API
POST - /add
POST - /subtract
POST- /multiply
POST- /division
send POST request to the endpoints with a JSON in the body
x is the first variable
y is the second variable
Sample JSON:
{
"x":193,
"y":657
}
Sample Response:
{
"Message": -464,
"Status Code": 200
}