API Request


If you have a request you want to run, you will need to know the URL, method, and other optional values such as parameters, body, headers, and authorization.


Setting URLs Request

Using request URLs in a Restful API allows you to control which URLs are sent to the server when your request is a resource. Testsigma requires an API endpoint URL for each request. Each operation you can perform using an API is typically associated with an endpoint.

  1. The URL will typically be the base location plus the path. For example, if you take the base URL https://jsonplaceholder.typicode.com/, if you add /get to it, it will be the endpoint path. Setting URL endpoint
  2. In a parameterized URL, you can insert test data by double-clicking on the URL and selecting the test data type. For example, https://@reqes.in/api/users?page=@page is the base URL,?page=page is a parameter, and @reqes and @page are test data types inserted in the URL. Select the method; by default, it will be GET. Click Send. insert test data in url
NOTE:

To know what test data types are, refer to Test Data Types for more information.


Selecting Method Request

By Default, Testsigma will select the GET method for new requests. GET methods are typically used for retrieving data from an API. You can use a variety of other methods to send data to your APIs by clicking the drop-down menu, including the following options:

  • POST - Add new data.
  • PUT - Replace existing data.
  • PATCH - Update some existing data fields.
  • DELETE - Delete existing data. Method request

Supporting Other Unicode Characters

In Testsigma, we support Unicode characters in various aspects of testing, such as parameters, request body data, verifications, stored variables, and stored objects. This enables you to enter and retrieve data in your native language and script, making the testing process more user-friendly and accessible. Moreover, adding Unicode characters to verifications ensures the verification process accurately represents the tested data.

Here is a quick gif demonstrating how to add Unicode in RESTful API. Unicode in Restful API

NOTE:

To enter Unicode characters, copy & paste the characters into the required field.