Math Server
The math-server is running on port 40002 on this server.
This is an example of using Java HttpServer and HttpHandler to implement a web service. Data is transmitted in JSON: Send the server a JSON object containing attribute "Input" that contains a JSON array. The JSON array then contains the inputs for the mathematical operation. The supported operations on the server are:
- /ping verifies server connectivity.
- /add /subtract /multiply and /divide all require two decimal numbers. They return a decimal number or a string (in case of an error).
- /factorial requires a single integer. It returns an integer or a string (in case of an error).
Project repositories
The project repositories (client and server) are private, because this is used as a student exercise.