-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRequest.http
More file actions
86 lines (73 loc) · 2.25 KB
/
Request.http
File metadata and controls
86 lines (73 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//List all Employees details
GET https://api.raje.tech/api/v1/employees
// List Employee by ID
//GET https://rajeapi.herokuapp.com/api/v1/employee/{ID}
###
GET https://api.raje.tech/api/v1/employee/6e1db625-efef-45cd-a01f-8004604d8f89
###
//Add Employee detail
//POST https://rajeapi.herokuapp.com/api/v1/employee/
POST https://api.raje.tech/api/v2/employee/add
Content-Type: application/json
API-Client-ID:f290469a-5777-4eaf-91eb-d94fd3cf05ba
API-Secret-Key: 4223e571-a4d6-4f68-950a-21ac284f5a5b
{
"Refno": "3baf55c38a1bf605f3cbd17e6b5d28f2",
"encryptedData": "554a7d809ee00798bf6404b20989c2c364f478f1321e9d9289468bf3114e05da2f7e38ca0a9b57b82f3779f16fd01819a59025b353febfcffe99c28fc7a1e247376029bc55f663aaafe141bd579ba2ad"
}
###
//Update Employee Detail
//PATCH https://rajeapi.herokuapp.com/api/v1/employee/
PATCH https://api.raje.tech/api/v1/employee
API-Key: Vishal1714
{
"_id" : "1334b739-89dd-4c83-a079-b424fc3eccd4",
"Name" : "Vishu",
"Zip" : "Ghadage",
"Age" : 26,
"Department" : "OS",
"Salary" : 750000
}
###
//Delete Employee Detail by ID
// DELETE https://rajeapi.herokuapp.com/api/v1/employee/{ID}
DELETE https://api.raje.tech/api/v1/employee/3b96b75f-adf7-4d86-97f9-ad3d61a68773
API-Key: Vishal1714
=======
//List all Employees details
GET https://api.raje.tech/api/v1/employee
// List Employee by ID
//GET https://rajeapi.herokuapp.com/api/v1/employee/{ID}
###
GET https://api.raje.tech/api/v1/employee/6e1db625-efef-45cd-a01f-8004604d8f89
###
//Add Employee detail
//POST https://rajeapi.herokuapp.com/api/v1/employee/
POST https://api.raje.tech/api/v1/employee
Content-Type: application/json
API-Key: Vishal1714
{
"Name" : "Vishal",
"Zip" : "400022",
"Age" : 25,
"Department" : "OS",
"Salary" : 450000
}
###
//Update Employee Detail
//PATCH https://rajeapi.herokuapp.com/api/v1/employee/
PATCH https://api.raje.tech/api/v1/employee
API-Key: Vishal1714
{
"_id" : "1334b739-89dd-4c83-a079-b424fc3eccd4",
"Name" : "Vishu",
"Zip" : "Ghadage",
"Age" : 26,
"Department" : "OS",
"Salary" : 750000
}
###
//Delete Employee Detail by ID
// DELETE https://rajeapi.herokuapp.com/api/v1/employee/{ID}
DELETE https://api.raje.tech/api/v1/employee/3b96b75f-adf7-4d86-97f9-ad3d61a68773
API-Key: Vishal1714