-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestApi.postman_collection.json
184 lines (184 loc) · 4.53 KB
/
restApi.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
{
"info": {
"_postman_id": "4aedf1c2-a30c-41d8-8dcc-b6436d437282",
"name": "restApi",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Find all employee by position",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "MAC w50+UMiEu0SE8ssBohi3uj6Cbyw=",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"eventId\": \"cdeae677-d225-492b-9b25-931028121846\",\n \"eventTime\": \"2021-07-31T00:00:00.000000Z\",\n \"eventType\": \"employees.find\",\n \"metadata\": {\n \"api_key\": \"asd\"\n },\n \"payload\": {\n \"position\": \"developer\"\n }\n}"
},
"url": {
"raw": "http://localhost/api/v1/",
"protocol": "http",
"host": [
"localhost"
],
"path": [
"api",
"v1",
""
]
}
},
"response": []
},
{
"name": "Find child employee by ID",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "MAC ROUpNnlE6yJx38JDq1jLxWUFZ34=",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"eventId\": \"cdeae677-d225-492b-9b25-931028121846\",\n \"eventTime\": \"2021-07-31T00:00:00.000000Z\",\n \"eventType\": \"employees.find.child.employees\",\n \"metadata\": {\n \"api_key\": \"asd\"\n },\n \"payload\": {\n \"parent_id\": 6\n }\n}"
},
"url": {
"raw": "http://localhost/api/v1/",
"protocol": "http",
"host": [
"localhost"
],
"path": [
"api",
"v1",
""
]
}
},
"response": []
},
{
"name": "Save employee",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "MAC vmMl9xE2VO3ETU3HcPZrSPJoMNU=",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"eventId\": \"cdeae677-d225-492b-9b25-931028121846\",\n \"eventTime\": \"2021-07-31T00:00:00.000000Z\",\n \"eventType\": \"employees.save\",\n \"metadata\": {\n \"api_key\": \"asd\"\n },\n \"payload\": {\n \"name\": \"Test Test\",\n \"position\": \"developer\",\n \"superior\": \"Delightful Dog\",\n \"startDate\": \"2021-09-01\",\n \"endDate\": null\n }\n}"
},
"url": {
"raw": "http://localhost/api/v1/",
"protocol": "http",
"host": [
"localhost"
],
"path": [
"api",
"v1",
""
]
}
},
"response": []
},
{
"name": "Update employee",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "MAC 8duHSsV8v9BhJt4wabsx0mXVPWE=",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"eventId\": \"cdeae677-d225-492b-9b25-931028121846\",\n \"eventTime\": \"2021-07-31T00:00:00.000000Z\",\n \"eventType\": \"employees.update\",\n \"metadata\": {\n \"api_key\": \"asd\"\n },\n \"payload\": {\n \"employee_id\": 1,\n \"name\": \"Test Up Test\",\n \"position\": \"management\"\n }\n}"
},
"url": {
"raw": "http://localhost/api/v1/",
"protocol": "http",
"host": [
"localhost"
],
"path": [
"api",
"v1",
""
]
}
},
"response": []
},
{
"name": "Delete employee",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "MAC yXniaNGovN5HpP6bTgNrJganWTQ=",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"eventId\": \"cdeae677-d225-492b-9b25-931028121846\",\n \"eventTime\": \"2021-07-31T00:00:00.000000Z\",\n \"eventType\": \"employees.delete\",\n \"metadata\": {\n \"api_key\": \"asd\"\n },\n \"payload\": {\n \"employee_id\": 1,\n \"employee_name\": \"Test Up Test\"\n }\n}"
},
"url": {
"raw": "http://localhost/api/v1/",
"protocol": "http",
"host": [
"localhost"
],
"path": [
"api",
"v1",
""
]
}
},
"response": []
}
]
}