API Testing
API Testing
NA
GET https://reqres.in/api/user?page2
NA
GET https://reqres.in/api/user/2
{
"name"= "ShivaKamesh",
"Job"="Leader"
POST https://reqres.in/api/user }
{
"email":
"[email protected]",
"password": "cityslicka"
POST https://reqres.in/api/login }
{
"email":"peter@klaven"
}
POST https://reqres.in/api/login
GET https://dummy.restapiexample.com/api/v1/employees
GET https://dummy.restapiexample.com/api/v1/employee/1
{
"name": "Anil",
"Job":"QA Engineeer",
"Age": "20",
"salary":"65000"
}
POST https://dummy.restapiexample.com/api/v1/create
{
"name": "Anil",
"salary": 950500,
"age": 32
}
PUT https://dummy.restapiexample.com/api/v1/update/21
https://dummy.restapiexample.com/api/v1/delete/2
DELETE
SUCCESS RESPONSE Failure Response Status code
200
200
{ NA
"name": "ShivaKamesh",
"Job": "Leader",
"id": "552",
"createdAt": "2022-10- 200
12T09:18:55.044Z"
}
{ NA
"token": "QpwL5tke4Pnpja7X4"
}
201
{ NA
"error": "Missing password"
}
400
{
"status": "success",
"data": {
"id": 1,
"employee_name": "Tiger
Nixon",
"employee_salary": 320800,
"employee_age": 61,
"profile_image": ""
}, 200
"message": "Successfully!
Record has been fetched."
}
{
"status": "success",
"data": {
"name": "Anil",
"Job": "QA Engineeer",
"Age": "20",
"salary": "65000",
"id": 3202
}, 200
"message": "Successfully!
Record has been added."
}
{
"status": "success",
"data": {
"name": "Anil",
"salary": 950500,
"age": 32
}, 200
"message": "Successfully!
Record has been updated."
}
{
"status": "success",
"data": "20",
"message": "Successfully! 200
Record has been deleted"
}
validation