Response

The response definitions for success and error responses.

About this task

Fill in the following fields in Success, and Error Response.

Procedure

  1. Type the HTTP status code in Status.
  2. In Content Type, select one of the following content types of the response data.
    • application/json
    • application/octet-stream
    • application/xml
    • application/x-www-form-urlencoded
    • multipart/form-data
    • text/html
    • text/plain
  3. Type the data of the response body for a successful response in the Response Body.
  4. Click on Add a row under Output Parameters to fill in the details in the table of output parameters. Elements of response can be assigned to output parameters. Paths are specified using dot notations, for example, address.city. Fill in the following details in each row.
    1. Name: The name of the output parameter.
    2. Location: Where to get the value of the output parameters from. Select either Header or Body to choose the location of the output parameter.
    3. Path: The JSON path of the output field, or the name of the response header.
  5. Click on Add a row to add more values.
  6. Click on Save, to create an endpoint.