HTTP Methods Every Tester should know
In this blog lets discuss on the different http methods and how to use them during API testing
I have made a small chart with short description , which helps us to quickly glance and understand in simple way
Here Payload refers to body of the request
Response body is the response we receive from the API server after performing the request
Safe – Suppose we make a post request to create a resource but due to network issues client may not receive success message from api server , which in turn make the request unsafe and chances are there client may request with same data which may lead to error
Idempotent – Here idempotency means multiple same requests will have same outcomes , so it really does not matter if the request is sent multiple times .
what is the difference between PUT v/s POST
Difference is that PUT Request is idempotent , Calling the PUT Request multiple times will produce the same result where as calling POST request multiple times creates side effects and may error out