/calc-rest

Restfull calculator api with deploy on heroku button

Primary LanguageJava

Calculator API implemented in REST

This is a sample api based on the prototype by Jesper Joergensen. This has been modified to run on heroku and use it as a calculator rest webservice

Deployment

To deploy to Heroku, simply click this button:

Deploy

Once the deployment is done you can access the API using below url

Add operation:

http://[heroku-url].herokuapp.com/calc?firstno=1&secondno=2&operation=add

Subtract operation:

http://[heroku-url].herokuapp.com/calc?firstno=1&secondno=2&operation=subtract

Multiply operation:

http://[heroku-url].herokuapp.com/calc?firstno=1&secondno=2&operation=multiply

Divide operation:

http://[heroku-url].herokuapp.com/calc?firstno=1&secondno=2&operation=divide