Skip to main content

API Testing with Postman

What is Postman

An API platform for creating and utilizing APIs is called Postman. To help you design better APIs faster, Postman improves collaboration and simplifies every stage of the API lifecycle.

What is API?

Interface which performs some action with Servers. A technique for two or more computer applications to communicate with one another is through an application programming interface (API). It is a form of software interface that gives other software applications a service. The term “API specification” refers to a document or standard that outlines how to create or utilize such a connection or interface. An API is stated to be implemented or exposed by a computer system that complies with this standard. The implementation or the specification are both included under the umbrella term API.

How to Test API?

Using postman tool anyone can test API. Postman is free to use.

What is Official Postman Website to download API Testing Tool?

User can download Postman free version from official Website

How does the Postman tool’s theme change?

Click the Gear Icon, then select Settings. Choose Theme Tab
The user can choose any accessible theme under the Theme tab, such as black.

What are types of API?

In software industry we have two types of API.
1. SOAP (Simple Object Access Protocol) API.
2. REST (Representational State transfer) API.
SOAP API are used by very less. Now a days REST API is Widely Used. SOAP Support only XML format data while REST support XML, JSON, Txt etc.

What is the Difference between Webservice and API

Simple and easy to understand the major difference between Webservice and API is, If API is available on Web (Internet) we called it as Webservice. So, all Webservices are API, but all APIs are not webservices. API, we can test it on Local System. Technically API and Webservices are same but once APIs are available on web, accessible to public then we can call it them as webservice.

What is REST API?

Term Rest stands for Representational state transfer.

What are different REST API Methods?

GET, Post, Put and Delete Methods. They are http request. When user we search something on web then that operation is GET Request. If user want to store some date to server, then one can use Post request. If user want to update existing data, then user can use PUT request. To delete any existing data user can use Delete request.

What is Payload in API Testing?

Data which we send with request and data which user received along with response is called it as Payload in API.

Sample or Test Website to Perform API Testing is Reqres – A hosted REST-API ready to respond to your AJAX requests

What are REST Response Code?

Response Code 200 – OK – Request granted; response includes outcome. This is a universal response code that can be given in response to any request.

Response Code 201 – Created – This response code is given back after a PUT or POST and shows that a new resource was successfully created.

Response Code 204 – No Content – shows that the request was approved but that nothing was provided in response. This is the only information about the result that was returned after the request was processed.

Response Code 400 – Bad Request – The request wasn’t legitimate. When the server tries to process a request but encounters an invalid request element, such as a poorly formed resource or an attempt to deploy an invalid event project to the event runtime, this code is returned.

Response Code 401 – Unauthorized – When application security is enabled, and authentication information was omitted from the request.

Response Code 403 – Forbidden – shows that a client tried to access a resource to which they are not authorized.

Response Code 404 – Not Found – Indicates that the requested resource is not available. The resource may have been deleted or the URI may be incorrect.

Response Code 405 – Method Not Allowed – Returned if the requested HTTP method is not supported by the targeted resource; for instance, the functions resource only permits GET operations.

Response Code 406 – Not Acceptable – The intended resource does not support the data format specified in the Accept header or accept parameter. In other words, although the client has asked for data to be returned in a specific format, the server is unable to comply.

Response Code 409 – Conflict – Shows that a conflicting modification was found while attempting to alter a resource. More details are provided in the body of the response.

Response Code 415 – Unsupported Media Type – The intended resource does not support the data type of the request body as defined in the Content-Type header.

Response Code 500 – Internal Server Error – The server experienced an internal issue. This could be a sign of an issue with the request or a bug in the server-side code.