Exercise 1: GET REST API & Return Response Object
In this exercise, calculate two numbers through an API.
Requirements
The API should support the “GET” method.
Numbers should be passed as a “Query String.”
Return the result with the error code “200” in a JSON format:
{"result": "The result of Addition"}
To proceed with the exercise, follow the steps below in the solution.
Solution
The solution consists of the following steps:
Create API
Test API.
Last updated