API Testing Cheat Sheet With Postman
API Testing Cheat Sheet With Postman
Web Services
SOAP (Simple Object Access Protocol) is a standard protocol defined by the W3C standards
for sending and receiving web service requests and responses.
REST (REpresentational State Transfer) is the web standards-based architecture that uses
HTTP. Unlike SOAP-based Web services, there is no official standard for RESTful Web
APIs.
CRUD Create, Read, Update & Delete
HTTP Request Methods
GET It fetches the information from the server. Moreover, it is the most commonly used
method which does not have a request body. Every time you open a website, the Get
request fires to retrieve the website contents. Additionally, it is equivalent to the read
operation.
POST It works to send data to the server. User may add or update data using the Post
request. They send the information that needs to update in the request body.
PUT It is similar to the Post method since it updates the data. The only difference is that we
use it when we have to replace an existing entity completely
PATCH It s again similar to Post and Put methods, but user use it when they have to update
some data partially. Moreover, unlike the Post and Put methods, user may send only
the entity that needs updation in the request body with the Patch method.
HEAD It is similar to the Get method, but it retrieves only the header data and not the entire
response body. User use it when they need to check the document's file size without
downloading the document.
DELETE It deletes the server's representations of resources through the specific URL.
Additionally, just like the Get method, it does not have a request body.
OPTIONS It is not a widely used method when compared to other ones. It returns data
specifying the different methods and the operations supported by the server at the
given URL.
Author Haradhan Pal
YouTube https://www.youtube.com/c/HaradhanAutomationLibrary?sub_confirmation=1