Schema (application/json) in the Response tab also enables users to add either a response object or a field.
To add a response object:
- Click Add and select Object from
the drop-down list.
The Schema Object dialog box is displayed.
- Enter the response object name and select the Array or Nullable checkboxes, if applicable.
- Click OK.
To add a response field:
- Click Add and select Field from
the drop-down list.
The Schema Field dialog box is displayed.
- Enter the field name and select a data type from the Data Type drop-down list.
- In the Mapping section, map the data type to any of the
following options:
- None
- Keyword
- Property
- Click OK.
Once the Response tab is configured, check Set Property to Status Code and enter the property in the field.