Skip to content

Commit ce68485

Browse files
Spring REST - CRUD Database Real-Time Project - Delete Customer
1 parent 52226a4 commit ce68485

18 files changed

+1209
-1
lines changed

Diff for: Json Test.postman_collection.json

+397
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,397 @@
1+
{
2+
"info": {
3+
"_postman_id": "47d2249e-552c-4de5-b7b1-632257157852",
4+
"name": "Json Test",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
6+
},
7+
"item": [
8+
{
9+
"name": "Spring-Rest",
10+
"item": [
11+
{
12+
"name": "http://date.jsontest.com/",
13+
"request": {
14+
"method": "GET",
15+
"header": [],
16+
"url": {
17+
"raw": "http://date.jsontest.com/",
18+
"protocol": "http",
19+
"host": [
20+
"date",
21+
"jsontest",
22+
"com"
23+
],
24+
"path": [
25+
""
26+
]
27+
}
28+
},
29+
"response": []
30+
},
31+
{
32+
"name": "https://jsonplaceholder.typicode.com/users",
33+
"request": {
34+
"method": "GET",
35+
"header": [],
36+
"url": {
37+
"raw": "https://jsonplaceholder.typicode.com/users",
38+
"protocol": "https",
39+
"host": [
40+
"jsonplaceholder",
41+
"typicode",
42+
"com"
43+
],
44+
"path": [
45+
"users"
46+
]
47+
}
48+
},
49+
"response": []
50+
},
51+
{
52+
"name": "http://localhost:8080/spring-rest-demo/test/hello",
53+
"request": {
54+
"method": "GET",
55+
"header": [],
56+
"url": {
57+
"raw": "http://localhost:8080/spring-rest-demo/test/hello",
58+
"protocol": "http",
59+
"host": [
60+
"localhost"
61+
],
62+
"port": "8080",
63+
"path": [
64+
"spring-rest-demo",
65+
"test",
66+
"hello"
67+
]
68+
}
69+
},
70+
"response": []
71+
},
72+
{
73+
"name": "http://localhost:8080/spring-rest-demo/api/students",
74+
"request": {
75+
"method": "GET",
76+
"header": [],
77+
"url": {
78+
"raw": "http://localhost:8080/spring-rest-demo/api/students",
79+
"protocol": "http",
80+
"host": [
81+
"localhost"
82+
],
83+
"port": "8080",
84+
"path": [
85+
"spring-rest-demo",
86+
"api",
87+
"students"
88+
]
89+
}
90+
},
91+
"response": []
92+
},
93+
{
94+
"name": "http://localhost:8080/spring-rest-demo/api/students/0",
95+
"request": {
96+
"method": "GET",
97+
"header": [],
98+
"url": {
99+
"raw": "http://localhost:8080/spring-rest-demo/api/students/0",
100+
"protocol": "http",
101+
"host": [
102+
"localhost"
103+
],
104+
"port": "8080",
105+
"path": [
106+
"spring-rest-demo",
107+
"api",
108+
"students",
109+
"0"
110+
]
111+
}
112+
},
113+
"response": []
114+
},
115+
{
116+
"name": "http://localhost:8080/spring-rest-demo/api/students/999",
117+
"request": {
118+
"method": "GET",
119+
"header": [],
120+
"url": {
121+
"raw": "http://localhost:8080/spring-rest-demo/api/students/999",
122+
"protocol": "http",
123+
"host": [
124+
"localhost"
125+
],
126+
"port": "8080",
127+
"path": [
128+
"spring-rest-demo",
129+
"api",
130+
"students",
131+
"999"
132+
]
133+
}
134+
},
135+
"response": []
136+
},
137+
{
138+
"name": "http://localhost:8080/spring-rest-demo/api/students/abc",
139+
"request": {
140+
"method": "GET",
141+
"header": [],
142+
"url": {
143+
"raw": "http://localhost:8080/spring-rest-demo/api/students/abc",
144+
"protocol": "http",
145+
"host": [
146+
"localhost"
147+
],
148+
"port": "8080",
149+
"path": [
150+
"spring-rest-demo",
151+
"api",
152+
"students",
153+
"abc"
154+
]
155+
}
156+
},
157+
"response": []
158+
},
159+
{
160+
"name": "http://localhost:8080/spring-rest-demo-05-global-exception-handling/api/students/aaa",
161+
"request": {
162+
"method": "GET",
163+
"header": [],
164+
"url": {
165+
"raw": "http://localhost:8080/spring-rest-demo-05-global-exception-handling/api/students/aaa",
166+
"protocol": "http",
167+
"host": [
168+
"localhost"
169+
],
170+
"port": "8080",
171+
"path": [
172+
"spring-rest-demo-05-global-exception-handling",
173+
"api",
174+
"students",
175+
"aaa"
176+
]
177+
}
178+
},
179+
"response": []
180+
}
181+
]
182+
},
183+
{
184+
"name": "Spring-Rest-CRUD",
185+
"item": [
186+
{
187+
"name": "http://localhost:8080/spring-crm-rest-demo-02-get-customers/api/customers",
188+
"request": {
189+
"method": "GET",
190+
"header": [],
191+
"url": {
192+
"raw": "http://localhost:8080/spring-crm-rest-demo-02-get-customers/api/customers",
193+
"protocol": "http",
194+
"host": [
195+
"localhost"
196+
],
197+
"port": "8080",
198+
"path": [
199+
"spring-crm-rest-demo-02-get-customers",
200+
"api",
201+
"customers"
202+
]
203+
}
204+
},
205+
"response": []
206+
},
207+
{
208+
"name": "http://localhost:8080/spring-crm-rest-demo-02-get-customers/api/customers/3",
209+
"request": {
210+
"method": "GET",
211+
"header": [],
212+
"url": {
213+
"raw": "http://localhost:8080/spring-crm-rest-demo-02-get-customers/api/customers/3",
214+
"protocol": "http",
215+
"host": [
216+
"localhost"
217+
],
218+
"port": "8080",
219+
"path": [
220+
"spring-crm-rest-demo-02-get-customers",
221+
"api",
222+
"customers",
223+
"3"
224+
]
225+
}
226+
},
227+
"response": []
228+
},
229+
{
230+
"name": "http://localhost:8080/spring-crm-rest-demo-02-get-customers/api/customers/3kk",
231+
"request": {
232+
"method": "GET",
233+
"header": [],
234+
"url": {
235+
"raw": "http://localhost:8080/spring-crm-rest-demo-02-get-customers/api/customers/3kk",
236+
"protocol": "http",
237+
"host": [
238+
"localhost"
239+
],
240+
"port": "8080",
241+
"path": [
242+
"spring-crm-rest-demo-02-get-customers",
243+
"api",
244+
"customers",
245+
"3kk"
246+
]
247+
}
248+
},
249+
"response": []
250+
},
251+
{
252+
"name": "http://localhost:8080/spring-crm-rest-demo-03-exception-handling/api/customers/aaaaa",
253+
"request": {
254+
"method": "GET",
255+
"header": [],
256+
"url": {
257+
"raw": "http://localhost:8080/spring-crm-rest-demo-03-exception-handling/api/customers/aaaaa",
258+
"protocol": "http",
259+
"host": [
260+
"localhost"
261+
],
262+
"port": "8080",
263+
"path": [
264+
"spring-crm-rest-demo-03-exception-handling",
265+
"api",
266+
"customers",
267+
"aaaaa"
268+
]
269+
}
270+
},
271+
"response": []
272+
},
273+
{
274+
"name": "http://localhost:8080/spring-crm-rest-demo-04-add-customer/api/customers",
275+
"request": {
276+
"method": "POST",
277+
"header": [],
278+
"body": {
279+
"mode": "raw",
280+
"raw": "{\r\n \"firstName\": \"Selena\",\r\n \"lastName\": \"Gomez\",\r\n \"email\": \"[email protected]\"\r\n}",
281+
"options": {
282+
"raw": {
283+
"language": "json"
284+
}
285+
}
286+
},
287+
"url": {
288+
"raw": "http://localhost:8080/pring-crm-rest-demo-04-add-customer/api/customers",
289+
"protocol": "http",
290+
"host": [
291+
"localhost"
292+
],
293+
"port": "8080",
294+
"path": [
295+
"pring-crm-rest-demo-04-add-customer",
296+
"api",
297+
"customers"
298+
]
299+
}
300+
},
301+
"response": []
302+
},
303+
{
304+
"name": "http://localhost:8080/spring-crm-rest-demo-04-add-customer/api/customers Copy",
305+
"request": {
306+
"method": "POST",
307+
"header": [],
308+
"body": {
309+
"mode": "raw",
310+
"raw": "{\r\n \"firstName\": \"Juan\",\r\n \"lastName\": \"Gomez\",\r\n \"email\": \"[email protected]\"\r\n}",
311+
"options": {
312+
"raw": {
313+
"language": "json"
314+
}
315+
}
316+
},
317+
"url": {
318+
"raw": "http://localhost:8080/pring-crm-rest-demo-04-add-customer/api/customers",
319+
"protocol": "http",
320+
"host": [
321+
"localhost"
322+
],
323+
"port": "8080",
324+
"path": [
325+
"pring-crm-rest-demo-04-add-customer",
326+
"api",
327+
"customers"
328+
]
329+
}
330+
},
331+
"response": []
332+
},
333+
{
334+
"name": "http://localhost:8080/spring-crm-rest-demo-04-add-customer/api/customers Copy 2",
335+
"request": {
336+
"method": "PUT",
337+
"header": [],
338+
"body": {
339+
"mode": "raw",
340+
"raw": "{\r\n \"id\" : \"7\",\r\n \"firstName\": \"Daniel\",\r\n \"lastName\": \"Gomez\",\r\n \"email\": \"[email protected]\"\r\n}",
341+
"options": {
342+
"raw": {
343+
"language": "json"
344+
}
345+
}
346+
},
347+
"url": {
348+
"raw": "http://localhost:8080/pring-crm-rest-demo-05-update-customer/api/customers",
349+
"protocol": "http",
350+
"host": [
351+
"localhost"
352+
],
353+
"port": "8080",
354+
"path": [
355+
"pring-crm-rest-demo-05-update-customer",
356+
"api",
357+
"customers"
358+
]
359+
}
360+
},
361+
"response": []
362+
},
363+
{
364+
"name": "http://localhost:8080/spring-crm-rest-demo-04-add-customer/api/customers Copy 3",
365+
"request": {
366+
"method": "DELETE",
367+
"header": [],
368+
"body": {
369+
"mode": "raw",
370+
"raw": "",
371+
"options": {
372+
"raw": {
373+
"language": "json"
374+
}
375+
}
376+
},
377+
"url": {
378+
"raw": "http://localhost:8080/spring-crm-rest-demo-06-delete-customer/api/customers/7",
379+
"protocol": "http",
380+
"host": [
381+
"localhost"
382+
],
383+
"port": "8080",
384+
"path": [
385+
"spring-crm-rest-demo-06-delete-customer",
386+
"api",
387+
"customers",
388+
"7"
389+
]
390+
}
391+
},
392+
"response": []
393+
}
394+
]
395+
}
396+
]
397+
}

0 commit comments

Comments
 (0)