CalculatorAPI - Sample JAVA API program
Step 1: Maven install.
Step 2: Run as -> Tomcat Server.
URL: http://localhost:{tomcat-HTTP-port}/JavaAPI/rest/calculator
Addition: http://localhost:{tomcat-HTTP-port}/JavaAPI/rest/calculator/add I/P: { "number_one" : 20, "number_two" : 20 }
Subtraction: http://localhost:{tomcat-HTTP-port}/JavaAPI/rest/calculator/sub I/P: { "number_one" : 20, "number_two" : 20 }
Multiplication: http://localhost:{tomcat-HTTP-port}/JavaAPI/rest/calculator/mul I/P: { "number_one" : 20, "number_two" : 20 }
Division: http://localhost:{tomcat-HTTP-port}/JavaAPI/rest/calculator/div I/P: { "number_one" : 20, "number_two" : 20 }