-
Notifications
You must be signed in to change notification settings - Fork 0
/
employee-service.postman_collection.json
161 lines (161 loc) · 5.91 KB
/
employee-service.postman_collection.json
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"info": {
"_postman_id": "dff05ad4-b3b3-42fe-8f75-d2c6f8020a88",
"name": "employee-service",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "21992586"
},
"item": [
{
"name": "AddNewEmployee",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"userId\" : 2,\r\n \"firstName\" : \"test_fn_2\",\r\n \"lastName\" : \"test_ln_2\",\r\n \"middleName\" : \"\",\r\n \"preferredName\" : \"\",\r\n \"email\" : \"[email protected]\",\r\n \"cellPhone\" : \"2234567890\",\r\n \"alternatePhone\" : \"\",\r\n \"gender\" : \"female\",\r\n \"ssn\" : \"1234567\",\r\n \"dob\" : \"\",\r\n \"startDate\" : \"\",\r\n \"endDate\" : \"\",\r\n \"driverLicense\" : \"\",\r\n \"driverLicenseExpiration\" : \"\",\r\n\r\n \"contact\" : [\r\n\r\n {\r\n \"firstName\" : \"test_fn_contact_2\",\r\n \"lastName\" : \"test_ln_contact_2\",\r\n \t\"cellPhone\" : \"1234567890\",\r\n \"alternatePhone\" : \"\",\r\n \t\"email\" : \"[email protected]\",\r\n \t\"relationship\" : \"parents\",\r\n \t\"type\" : \"\"\r\n }\r\n\r\n ],\r\n\r\n \"address\" : [\r\n\r\n {\r\n \"addressLine1\" : \"\",\r\n \t\"addressLine2\" : \"\",\r\n \t\"city\" : \"\",\r\n \t\"state\" : \"\",\r\n \t\"zipCode\" : \"\"\r\n }\r\n ],\r\n\r\n \"visaStatus\" : [\r\n\r\n {\r\n \"visaType\" : \"\",\r\n \"activeFlag\" : \"\",\r\n \"startDate\" : \"\",\r\n \"endDate\" : \"\",\r\n \"lastModificationDate\" : \"\"\r\n }\r\n ],\r\n\r\n \"personalDocument\" : [\r\n {\r\n \"path\" : \"\",\r\n \"title\" : \"\",\r\n \"comment\" : \"\",\r\n \"createDate\" : \"\"\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8085/employee-service/employee/add",
"host": [
"localhost"
],
"port": "8085",
"path": [
"employee-service",
"employee",
"add"
]
}
},
"response": []
},
{
"name": "localhost:8085/employee-service/employee/userId?userId=0",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8085/employee-service/employee/userId?userId=0",
"host": [
"localhost"
],
"port": "8085",
"path": [
"employee-service",
"employee",
"userId"
],
"query": [
{
"key": "userId",
"value": "0"
}
]
}
},
"response": []
},
{
"name": "GetEmployeeByEmail",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8085/employee-service/employee/[email protected]",
"host": [
"localhost"
],
"port": "8085",
"path": [
"employee-service",
"employee",
"email"
],
"query": [
{
"key": "email",
"value": "[email protected]"
}
]
}
},
"response": []
},
{
"name": "GetAllEmployees",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8085/employee-service/employee/all",
"host": [
"localhost"
],
"port": "8085",
"path": [
"employee-service",
"employee",
"all"
]
}
},
"response": []
},
{
"name": "GetEmployeeById",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "localhost:8085/employee-service/employee/62f94fe7b4859e6718b2bcba",
"host": [
"localhost"
],
"port": "8085",
"path": [
"employee-service",
"employee",
"62f94fe7b4859e6718b2bcba"
]
}
},
"response": []
},
{
"name": "UpdateEmployeeById",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"userId\" : 2,\r\n \"firstName\" : \"test_fn_2\",\r\n \"lastName\" : \"test_ln_2\",\r\n \"middleName\" : \"\",\r\n \"preferredName\" : \"\",\r\n \"email\" : \"[email protected]\",\r\n \"cellPhone\" : \"2234567890\",\r\n \"alternatePhone\" : \"\",\r\n \"gender\" : \"female\",\r\n \"ssn\" : \"1234567\",\r\n \"dob\" : \"\",\r\n \"startDate\" : \"\",\r\n \"endDate\" : \"\",\r\n \"driverLicense\" : \"\",\r\n \"driverLicenseExpiration\" : \"\",\r\n \"houseId\" : 1,\r\n \"contact\" : [\r\n\r\n {\r\n \"firstName\" : \"test_fn_contact_1\",\r\n \"lastName\" : \"test_ln_contact_1\",\r\n \t\"cellPhone\" : \"1234567890\",\r\n \"alternatePhone\" : \"\",\r\n \t\"email\" : \"[email protected]\",\r\n \t\"relationship\" : \"parents\",\r\n \t\"type\" : \"\"\r\n }\r\n\r\n ],\r\n\r\n \"address\" : [\r\n\r\n {\r\n \"addressLine1\" : \"\",\r\n \t\"addressLine2\" : \"\",\r\n \t\"city\" : \"\",\r\n \t\"state\" : \"\",\r\n \t\"zipCode\" : \"\"\r\n }\r\n ],\r\n\r\n \"visaStatus\" : [\r\n\r\n {\r\n \"visaType\" : \"\",\r\n \"activeFlag\" : \"\",\r\n \"startDate\" : \"\",\r\n \"endDate\" : \"\",\r\n \"lastModificationDate\" : \"\"\r\n }\r\n ],\r\n\r\n \"personalDocument\" : [\r\n {\r\n \"path\" : \"\",\r\n \"title\" : \"\",\r\n \"comment\" : \"\",\r\n \"createDate\" : \"\"\r\n },\r\n {\r\n \"path\" : \"\",\r\n \"title\" : \"\",\r\n \"comment\" : \"\",\r\n \"createDate\" : \"\"\r\n }\r\n ]\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "localhost:8085/employee-service/employee/update/62f9717fafd8a52a954a05fa",
"host": [
"localhost"
],
"port": "8085",
"path": [
"employee-service",
"employee",
"update",
"62f9717fafd8a52a954a05fa"
]
}
},
"response": []
}
]
}