Welcome to the Spring WebMVC Example Application. This application provides a REST API for a very basic calculator. The following paths are supported for GET requests:
All of these paths return a JSON object containing the supplied parameters and the result. For example, this service call returns:
{ "operation": "add", "left": 2, "right": 2, "result": 4 }In addition, for illustration purposes, the service supports POST requests for:
The request body must be a JSON object similar to the above ("result" is of course optional). The response will be JSON as above.