Create Requests

To create a new Rest request for a Sandbox:

  1. Select the Rest type Sandbox and click "New Request" to create a named request.
  2. After request creation, click on the Sandbox to see the created request.
  3. Click on the request to select it and view the dynamically created URL in the URL Input Box.
  4. Choose the appropriate HTTP method.
  5. Provide necessary data (parameters, body, headers, rules) if required.
  6. Save the request.
  7. After saving the request, click the Start button to start the Sandbox.

Example :

We will simulate an E-Commerce request which has the following request & response body:

// Request Body
{
  "productId": "1000",
  "productName": "iphone 15",
  "company": "Apple",
  "price": "85000"
}

// Response Body
{
  "cartId": "CR230",
  "message": "Added Successfully"
}

Execute Rest Request

To test a Rest Sandbox request:

  1. Copy the URL of the desired Rest request within the Sandbox.
  2. Go to the Studio module and paste the Sandbox request's URL.
  3. Provide any required data (body, method parameters, headers, etc.).
  4. Send the request.
  5. Compare the actual response to the expected response.
  • Make sure to start the Sandbox after simulating a request.

Follow the above steps and execute the simulated request in the Studio module. You will receive the simulated response body after request execution.

Repeat these steps for different requests within the Sandbox to thoroughly test your REST APIs efficiently.