API Testing Notes (1)
API Testing Notes (1)
* each document has inside it a BASEURL ( sometimes you can see that the document
dosen't have a baseURL so the URL of the document is the baseURL)
https://jsonplaceholder.typicode.com/
*each BASEURL is followed by an endpoint ( sometimes you can see that the endpoint
has two different names (resource,service)
https://jsonplaceholder.typicode.com/comments
*each request has a type and this type is going to be one of the following
get,post,put,patch, delete --- are the same as the Crud Methods below
get : retireve the data for me ( get me the data) for example if you search about
someone on Facebook
put : it will update one record for you ( for example update your name on
facebook ) ( it will insert and then update incase the record was not there)
patch : it will update one record for you ( for example update your name on
facebook ) ( it will give me an error incase there is no record to update )
delete : it will delete some data for me ( for example delete one friend from your
facebook friendlist )
{{
400-499 it means that we have a problem from ourside (client side error)
500-599 it means that the problem from the server itself ( server side error)
HomeWork
https://reqres.in/