Skip to content

Commit fb22b0a

Browse files
committed
Added postman service call examples
1 parent fbeaa90 commit fb22b0a

File tree

1 file changed

+224
-0
lines changed

1 file changed

+224
-0
lines changed
Lines changed: 224 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
{
2+
"info": {
3+
"_postman_id": "b805b28c-54e6-488f-a596-13bb462df610",
4+
"name": "microservices-springboot-example",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "department-service/saveDepartment",
10+
"request": {
11+
"method": "POST",
12+
"header": [],
13+
"body": {
14+
"mode": "raw",
15+
"raw": "{\n \"name\":\"Information Technology\",\n \"description\":\"Information Technology Department\",\n \"address\":\"Istanbul Turkey\",\n \"code\":\"IT3\"\n\n}",
16+
"options": {
17+
"raw": {
18+
"language": "json"
19+
}
20+
}
21+
},
22+
"url": {
23+
"raw": "http://localhost:9191/departments/",
24+
"protocol": "http",
25+
"host": [
26+
"localhost"
27+
],
28+
"port": "9191",
29+
"path": [
30+
"departments",
31+
""
32+
]
33+
}
34+
},
35+
"response": []
36+
},
37+
{
38+
"name": "person-service/savePerson",
39+
"request": {
40+
"method": "POST",
41+
"header": [],
42+
"body": {
43+
"mode": "raw",
44+
"raw": "{\n \"firstName\":\"aaa\",\n \"lastName\":\"bb\",\n \"email\": \"[email protected]\",\n \"password\":\"password\",\n \"parentId\":null,\n \"departmentId\":1\n}",
45+
"options": {
46+
"raw": {
47+
"language": "json"
48+
}
49+
}
50+
},
51+
"url": {
52+
"raw": "http://localhost:9191/people/",
53+
"protocol": "http",
54+
"host": [
55+
"localhost"
56+
],
57+
"port": "9191",
58+
"path": [
59+
"people",
60+
""
61+
]
62+
}
63+
},
64+
"response": []
65+
},
66+
{
67+
"name": "task-service/saveTask",
68+
"request": {
69+
"method": "POST",
70+
"header": [],
71+
"body": {
72+
"mode": "raw",
73+
"raw": "{\n \"name\": \"First Task\",\n \"description\": \"Microservices First Task\",\n \"state\": \"TODO\",\n \"startDate\": \"2021-06-10T10:28:16.980+00:00\",\n \"endDate\": \"2021-06-10T10:28:16.980+00:00\",\n \"assignedPersonId\": 2,\n \"createdPersonId\": 2,\n \"departmentId\": 1\n}",
74+
"options": {
75+
"raw": {
76+
"language": "json"
77+
}
78+
}
79+
},
80+
"url": {
81+
"raw": "http://localhost:9191/tasks/",
82+
"protocol": "http",
83+
"host": [
84+
"localhost"
85+
],
86+
"port": "9191",
87+
"path": [
88+
"tasks",
89+
""
90+
]
91+
}
92+
},
93+
"response": []
94+
},
95+
{
96+
"name": "department-service/getDepartment",
97+
"protocolProfileBehavior": {
98+
"disableBodyPruning": true
99+
},
100+
"request": {
101+
"method": "GET",
102+
"header": [],
103+
"body": {
104+
"mode": "raw",
105+
"raw": "",
106+
"options": {
107+
"raw": {
108+
"language": "json"
109+
}
110+
}
111+
},
112+
"url": {
113+
"raw": "http://localhost:9191/departments/1",
114+
"protocol": "http",
115+
"host": [
116+
"localhost"
117+
],
118+
"port": "9191",
119+
"path": [
120+
"departments",
121+
"1"
122+
]
123+
}
124+
},
125+
"response": []
126+
},
127+
{
128+
"name": "user-service/getUser",
129+
"protocolProfileBehavior": {
130+
"disableBodyPruning": true
131+
},
132+
"request": {
133+
"method": "GET",
134+
"header": [],
135+
"body": {
136+
"mode": "raw",
137+
"raw": "",
138+
"options": {
139+
"raw": {
140+
"language": "json"
141+
}
142+
}
143+
},
144+
"url": {
145+
"raw": "http://localhost:9191/users/1",
146+
"protocol": "http",
147+
"host": [
148+
"localhost"
149+
],
150+
"port": "9191",
151+
"path": [
152+
"users",
153+
"1"
154+
]
155+
}
156+
},
157+
"response": []
158+
},
159+
{
160+
"name": "task-service/getTaskById",
161+
"protocolProfileBehavior": {
162+
"disableBodyPruning": true
163+
},
164+
"request": {
165+
"method": "GET",
166+
"header": [],
167+
"body": {
168+
"mode": "raw",
169+
"raw": "",
170+
"options": {
171+
"raw": {
172+
"language": "json"
173+
}
174+
}
175+
},
176+
"url": {
177+
"raw": "http://localhost:9191/tasks/1",
178+
"protocol": "http",
179+
"host": [
180+
"localhost"
181+
],
182+
"port": "9191",
183+
"path": [
184+
"tasks",
185+
"1"
186+
]
187+
}
188+
},
189+
"response": []
190+
},
191+
{
192+
"name": "task-service/getTaskWithUserAndDepartment",
193+
"protocolProfileBehavior": {
194+
"disableBodyPruning": true
195+
},
196+
"request": {
197+
"method": "GET",
198+
"header": [],
199+
"body": {
200+
"mode": "raw",
201+
"raw": "",
202+
"options": {
203+
"raw": {
204+
"language": "json"
205+
}
206+
}
207+
},
208+
"url": {
209+
"raw": "http://localhost:9191/tasks/1",
210+
"protocol": "http",
211+
"host": [
212+
"localhost"
213+
],
214+
"port": "9191",
215+
"path": [
216+
"tasks",
217+
"1"
218+
]
219+
}
220+
},
221+
"response": []
222+
}
223+
]
224+
}

0 commit comments

Comments
 (0)