Step 3.3: Add a Response to Your Operation
Responses define what your API returns after performing an operation. In Data Equity Studio, responses are currently supported in the JSON format.
How to Add a Response
-
Select the Operation:
- Navigate to the operation you’ve just created (e.g.,
GET /users
,POST /products
).
- Navigate to the operation you’ve just created (e.g.,
-
Add a New Response:
- Click on the Add Response button.
-
Choose a Status Code:
- Select the relevant HTTP status code for the operation:
- 200 OK: Successful response for
GET
,PUT
, orDELETE
operations. - 201 Created: Successful response for
POST
operations. - 400 Bad Request: Error response for invalid client requests.
- 500 Internal Server Error: Error response for server issues.
- 200 OK: Successful response for
- Select the relevant HTTP status code for the operation:
-
Provide a Description:
- Add a brief description of the response to clarify its purpose (e.g., "List of users", "User successfully created", "Invalid request format").