Getting started with Postman
Before we dive into the Postman tool, it is worthwhile to understand the basics of REST APIs and what goes into testing them.
Basics of REST API testing
A REST API is stateless in nature and is built on client-server architecture. The client must provide all the data such as headers, authorization, and so on for every request since the server cannot store any information due to the stateless nature of these APIs. The communication usually happens over HTTP using JSON with support for Create, Read, Update, Delete (CRUD) methods. Some of the most commonly used REST API methods are the following:
- GET: Retrieve information about a REST API resource
- POST: Create a REST API resource
- PUT: Update a REST API resource
- DELETE: Delete a REST resource or a related component
- OPTIONS: List the supported operations in a web service
- HEAD: Returns only HTTP header and no body
Syntax to call a RESTful API goes like this: http://{host...