-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBodyEntityExamplesForPostman.txt
More file actions
47 lines (41 loc) · 1.54 KB
/
BodyEntityExamplesForPostman.txt
File metadata and controls
47 lines (41 loc) · 1.54 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
These are some example of the body entity in Postman commands:
For a POST request http://localhost:80/gilhari/v1/Department/
"entity": {
"deptId": 101,
"name": "HR",
"location": "New York",
"budget": 500000.00,
"employees": [
{
"empId": 201,
"firstName": "John",
"lastName": "Doe",
"salary": 70000.00,
"deptId": 101
},
{
"empId": 202,
"firstName": "Jane",
"lastName": "Smith",
"salary": 75000.00,
"deptId": 101
},
{
"empId": 203,
"firstName": "Michael",
"lastName": "Johnson",
"salary": 80000.00,
"deptId": 101
},
{
"empId": 204,
"firstName": "Sarah",
"lastName": "Brown",
"salary": 72000.00,
"deptId": 101
}
]
}
For a GET/access request http://localhost:8081/gilhari/v1/Department/access?attribute=employees
the following could be the entity in the body. No need to specify the non-key attributes:
{"entity": {"deptId": 101}}