Sending Request
Prerequisites#
- Open the HTTP request from the home tab.
Directions#
To demonstrate this action we'll use the JSON placeholder API to test various operations.
- Select the request method
POSTfrom either the drop-down menu or the Quick Method Selection section. - Set the following
https://jsonplaceholder.typicode.com/postsAPI end-point in the URL bar. - Select a
body typeasJSONfrom drop-down. Add body as shown below
{ "userId": 102, "id": 102, "title": "This is request title", "body": "This is request body"}- Hit enter and wait for API response.
Illustration
Additional information:#
To test out APIs smoothly and to facilitate a quick response, create multiple bodies as instructed below:
- Navigate to the tiny
+icon in the top right corner of the Request Panel and click on it. - Enter a name for your body in the name field with the placeholder
New Body Nameand hit enter. - You can either create a new body or copy the current body by checking the checkbox below the name field.
- Test you the API using different bodies smoothly.