👇
Before we start scripting with Rest Assured Lets understand
what are these methods GET, POST, PUT, PATCH , DELETE etc.
GET
GET requests are the most common and widely used
methods in APIs and websites. Simply put, the GET method is used to retrieve
data from a server at the specified resource. For example, say you have an API
with a /users endpoint. Making a GET request to that endpoint should
return a list of all available users.
Idempotent REST APIs
In the context of REST APIs, when making multiple identical
requests has the same effect as making a single request – then that REST API is
called idempotent.
An idempotent HTTP method is an HTTP method that can be
called many times without different outcomes. It would not matter if the method
is called only once, or ten times over. The result should be the same.