You are on page 1of 3

HTTP

TCID ENDPOINT METHOD


TYPE
1 https://reqres.in GET

2 https://reqres.in GET

3 https://reqres.in POST

4 https://reqres.in POST

5 https://reqres.in POST

6 http://dummy.restapiexample.com/ GET

7 http://dummy.restapiexample.com/ GET

8 http://dummy.restapiexample.com/ POST

9 http://dummy.restapiexample.com/ PUT

10 http://dummy.restapiexample.com/ DELETE
URI BODY

https://reqres.in/api/users?page=2 NA

https://reqres.in/api/users/2 NA

{
"name": "morpheus",
"job": "leader"
https://reqres.in/api/users }

{
"email":
"peter@klaven",
https://reqres.in/api/login
"password":
"cityslicka"
}
{
"email":
https://reqres.in/api/login "peter@klaven"
}

NA

http://dummy.restapiexample.com/api/v1/employees

na

http://dummy.restapiexample.com/api/v1/employee/700

{"name":"test","salary":"
123","age":"23"}
http://dummy.restapiexample.com/api/v1/create

{"name":"test1","salary"
http://dummy.restapiexample.com/api/v1/update/21 :"1123","age":"23"}

http://dummy.restapiexample.com/api/v1/delete/700
FAILURE
SUCCESS RESPONSE STATUS COMMENTS
RESPONSE
CODE
Returns list of users in a page NA 2 represents page number
200 Query parameter: page=2
Returns single user NA 2 represents student id
200 Path parameter: /2
{ NA
"name": "morpheus",
"job": "leader",
"id": "256",
"createdAt": "2018-07-
07T05:43:53.310Z"
} 201 Create
{ NA Login Success
"token": "QpwL5tke4Pnpja7X"
}

200
NA { Login Unsuccesful
"error":
"Missing
password"
} 400
[{"id":"1","employee_name":""," Get all employee data
employee_salary":"0","employee Path parameter: /employee
_age":"0","profile_image":""},
{"id":"2","employee_name":"","
employee_salary":"0","employee
_age":"0","profile_image":""}]
200 OK
{"id":"700","employee_name":" Get a single employee data
%26lt%3bSCRIPT%20a%3d Path parameter:
%60%26gt%3b%60%20SRC /employee/719
%3d%5c%22http%26#58%3b
%2f%2fha%26#46%3bckers
%26#46%3borg%2fxss
%26#46%3bjs%5c%22%26gt
%3b%26lt%3b%2fSCRIPT
%26gt
%3b","employee_salary":"123"," 200
employee_age":"33","profile_im
{"name":"test","salary":"123","a Create new record in database
ge":"23","id":"719"} Path parameter: /update/719

200
{"name":"test1","salary":"1123" Update an employee record
,"age":"23"} Path parameter: /update/{id}
200
{"success":{"text":"successfully! Delete an employee record
deleted Records"}} 200 Path Parameter:/delete/{id}

You might also like