You are here: Designer Studio > Landing pages > Integration > Configuring the request and response in REST integration by adding a REST response

Configuring the request and response in REST integration by adding a REST response

On the Data model page of the New REST Integration wizard, you can obtain REST responses for each method that you selected on the Resource methods page of the wizard. The system uses this data to generate the request and response data models for each method.

  1. Click Add a REST response.
  2. Select a method from the Choose method list.
  3. Enter the values of individual elements under Resource path parameters, Request headers, and Query string parameters. The system updates the endpoint URL with the values of the resource path parameters.
  4. For POST and PUT methods, select the content type for the request (XML or JSON) and configure the body of the request by using the content type.

    Note: The parameter and header values are applicable only for the current instance of test execution for the method that you selected in step 2.

  5. Click Run to view the response. The default response is displayed in XML format on the Body tab and the header information is displayed on the Headers tab.
  6. Continue with step 2 of Defining a data model for REST integration.