Skip to content

Commit ae3f376

Browse files
committed
✨ all microservices done, readme.md changes
1 parent f680e33 commit ae3f376

File tree

3 files changed

+422
-16
lines changed

3 files changed

+422
-16
lines changed
Lines changed: 391 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,391 @@
1+
{
2+
"info": {
3+
"_postman_id": "65805e84-f26c-4db7-b07e-23018f21f19e",
4+
"name": "Springboot QuizApp",
5+
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json",
6+
"_exporter_id": "22898937"
7+
},
8+
"item": [
9+
{
10+
"name": "v1 Monolithic Architecture",
11+
"item": [
12+
{
13+
"name": "Quiz",
14+
"item": [
15+
{
16+
"name": "add Quiz",
17+
"request": {
18+
"method": "POST",
19+
"header": [],
20+
"body": {
21+
"mode": "raw",
22+
"raw": "{\r\n \"questionTitle\": \"What is the purpose of a Python decorator?\",\r\n \"option1\": \"To add inline comments within a function\",\r\n \"option2\": \"To mark a function as deprecated and discourage its use\",\r\n \"option3\": \"To modify or extend the behavior of a function or class method\",\r\n \"option4\": \"To define a new variable within a function's scope\",\r\n \"rightAnswer\": \"To modify or extend the behavior of a function or class method\",\r\n \"difficultylevel\": \"Medium\",\r\n \"category\": \"Python\"\r\n}",
23+
"options": {
24+
"raw": {
25+
"language": "json"
26+
}
27+
}
28+
},
29+
"url": {
30+
"raw": "http://localhost:8080/quiz/create?category=Java&numQ=3&title=JavaQuiz",
31+
"protocol": "http",
32+
"host": [
33+
"localhost"
34+
],
35+
"port": "8080",
36+
"path": [
37+
"quiz",
38+
"create"
39+
],
40+
"query": [
41+
{
42+
"key": "category",
43+
"value": "Java"
44+
},
45+
{
46+
"key": "numQ",
47+
"value": "3"
48+
},
49+
{
50+
"key": "title",
51+
"value": "JavaQuiz"
52+
}
53+
]
54+
}
55+
},
56+
"response": []
57+
},
58+
{
59+
"name": "results - submit Quiz",
60+
"request": {
61+
"method": "POST",
62+
"header": [],
63+
"body": {
64+
"mode": "raw",
65+
"raw": "[\r\n {\r\n \"id\": \"6\",\r\n \"response\": \"Abstract classes support multiple inheritance, while interfaces do not\"\r\n },\r\n {\r\n \"id\": \"7\",\r\n \"response\": \"compares memory addresses egweagt st3bwgt5tete3tf\"\r\n }\r\n]",
66+
"options": {
67+
"raw": {
68+
"language": "json"
69+
}
70+
}
71+
},
72+
"url": "http://localhost:8080/quiz/submit/1"
73+
},
74+
"response": []
75+
},
76+
{
77+
"name": "get Quiz",
78+
"request": {
79+
"method": "GET",
80+
"header": [],
81+
"url": "http://localhost:8080/quiz/get/1"
82+
},
83+
"response": []
84+
}
85+
]
86+
},
87+
{
88+
"name": "Question",
89+
"item": [
90+
{
91+
"name": "get All Questions",
92+
"request": {
93+
"method": "GET",
94+
"header": [],
95+
"url": "http://localhost:8080/question/allQuestions"
96+
},
97+
"response": []
98+
},
99+
{
100+
"name": "get Questions by Category",
101+
"request": {
102+
"method": "GET",
103+
"header": [],
104+
"url": "http://localhost:8080/question/category/Java2"
105+
},
106+
"response": []
107+
},
108+
{
109+
"name": "add Questions",
110+
"request": {
111+
"method": "POST",
112+
"header": [],
113+
"body": {
114+
"mode": "raw",
115+
"raw": "{\r\n \"questionTitle\": \"What is the diff. b/w equals() method & == operator in Java when comparing objects?\",\r\n \"option1\": \"equals() method compares the contents of objects, while == operator compares memory addresses\",\r\n \"option2\": \"equals() method is used to compare primitive data types, while == operator is used for objects\",\r\n \"option3\": \"equals() method & == operator perform the same type of comparison and can be used interchangeably\",\r\n \"option4\": \"equals() method compares memory addresses, while == operator compares the contents of objects\",\r\n \"rightAnswer\": \"equals() method compares the contents of objects, while the == operator compares memory addresses\",\r\n \"difficultylevel\": \"Hard\",\r\n \"category\": \"Java\"\r\n}",
116+
"options": {
117+
"raw": {
118+
"language": "json"
119+
}
120+
}
121+
},
122+
"url": "http://localhost:8080/question/add"
123+
},
124+
"response": []
125+
},
126+
{
127+
"name": "update Questions",
128+
"request": {
129+
"method": "PUT",
130+
"header": [],
131+
"body": {
132+
"mode": "raw",
133+
"raw": "{\r\n \"questionTitle\": \"Which of the following is the purpose of a Python decorator?\",\r\n \"option1\": \"To add inline comments within a function\",\r\n \"option2\": \"To mark a function as deprecated and discourage its use\",\r\n \"option3\": \"To modify or extend the behavior of a function or class method\",\r\n \"option4\": \"To define a new variable within a function's scope\",\r\n \"rightAnswer\": \"To modify or extend the behavior of a function or class method\",\r\n \"difficultylevel\": \"Medium\",\r\n \"category\": \"Python\"\r\n}",
134+
"options": {
135+
"raw": {
136+
"language": "json"
137+
}
138+
}
139+
},
140+
"url": "http://localhost:8080/question/update/3"
141+
},
142+
"response": []
143+
},
144+
{
145+
"name": "delete Questions",
146+
"request": {
147+
"method": "DELETE",
148+
"header": [],
149+
"url": "http://localhost:8080/question/delete/3"
150+
},
151+
"response": []
152+
}
153+
]
154+
},
155+
{
156+
"name": "Quiz Results",
157+
"item": [
158+
{
159+
"name": "results - submit Quiz",
160+
"request": {
161+
"method": "POST",
162+
"header": [],
163+
"body": {
164+
"mode": "raw",
165+
"raw": "[\r\n {\r\n \"id\": \"6\",\r\n \"response\": \"Abstract classes support multiple inheritance, while interfaces do not\"\r\n },\r\n {\r\n \"id\": \"7\",\r\n \"response\": \"compares memory addresses egweagt st3bwgt5tete3tf\"\r\n }\r\n]",
166+
"options": {
167+
"raw": {
168+
"language": "json"
169+
}
170+
}
171+
},
172+
"url": "http://localhost:8080/quiz/submit/1"
173+
},
174+
"response": []
175+
}
176+
]
177+
}
178+
]
179+
},
180+
{
181+
"name": "v2 Microservices",
182+
"item": [
183+
{
184+
"name": "Quiz microservices",
185+
"item": [
186+
{
187+
"name": "create quiz",
188+
"request": {
189+
"method": "POST",
190+
"header": [],
191+
"body": {
192+
"mode": "raw",
193+
"raw": "{\r\n \"categoryName\":\"Java\",\r\n\t\"numQuestions\": 3,\r\n\t\"title\": \"Java Question Generation - 1\"\r\n}",
194+
"options": {
195+
"raw": {
196+
"language": "json"
197+
}
198+
}
199+
},
200+
"url": "http://localhost:8090/quiz/create"
201+
},
202+
"response": []
203+
},
204+
{
205+
"name": "submit quiz",
206+
"request": {
207+
"method": "POST",
208+
"header": [],
209+
"body": {
210+
"mode": "raw",
211+
"raw": "[\r\n {\r\n \"id\":1,\r\n \"response\": \"Wronge Ans HERE\"\r\n },{\r\n \"id\":6,\r\n \"response\": \"Abstract classes support multiple inheritance, while interfaces do not\"\r\n },{\r\n \"id\":7,\r\n \"response\": \"to declare a variable that should not be serialized when the object is being persisted\"}\r\n]",
212+
"options": {
213+
"raw": {
214+
"language": "json"
215+
}
216+
}
217+
},
218+
"url": "http://localhost:8090/quiz/submit/1"
219+
},
220+
"response": []
221+
},
222+
{
223+
"name": "get quiz",
224+
"request": {
225+
"method": "GET",
226+
"header": [],
227+
"url": "http://localhost:8090/quiz/get/1"
228+
},
229+
"response": []
230+
}
231+
]
232+
},
233+
{
234+
"name": "Question microservices",
235+
"item": [
236+
{
237+
"name": "getQuestions",
238+
"request": {
239+
"method": "POST",
240+
"header": [],
241+
"body": {
242+
"mode": "raw",
243+
"raw": "[2,4,7,8]",
244+
"options": {
245+
"raw": {
246+
"language": "json"
247+
}
248+
}
249+
},
250+
"url": "http://localhost:8080/question/getQuestions"
251+
},
252+
"response": []
253+
},
254+
{
255+
"name": "get Score",
256+
"request": {
257+
"method": "POST",
258+
"header": [],
259+
"body": {
260+
"mode": "raw",
261+
"raw": "[\r\n {\r\n \"id\": \"6\",\r\n \"response\": \"Abstract classes support multiple inheritance, while interfaces do not\"\r\n },\r\n {\r\n \"id\": \"7\",\r\n \"response\": \"Wronge ANS HERE\"\r\n },\r\n {\r\n \"id\": \"8\",\r\n \"response\": \"equals() method compares the contents of objects, while the == operator compares memory addresses\"\r\n }\r\n]",
262+
"options": {
263+
"raw": {
264+
"language": "json"
265+
}
266+
}
267+
},
268+
"url": "http://localhost:8080/question/getScore"
269+
},
270+
"response": []
271+
},
272+
{
273+
"name": "question generate",
274+
"request": {
275+
"method": "GET",
276+
"header": [],
277+
"url": "http://localhost:8080/question/generate"
278+
},
279+
"response": []
280+
}
281+
]
282+
},
283+
{
284+
"name": "API Gateway",
285+
"item": [
286+
{
287+
"name": "Quiz microservices",
288+
"item": [
289+
{
290+
"name": "create quiz",
291+
"request": {
292+
"method": "POST",
293+
"header": [],
294+
"body": {
295+
"mode": "raw",
296+
"raw": "{\r\n \"categoryName\":\"Java\",\r\n\t\"numQuestions\": 3,\r\n\t\"title\": \"Java Question Generation - 1\"\r\n}",
297+
"options": {
298+
"raw": {
299+
"language": "json"
300+
}
301+
}
302+
},
303+
"url": "http://localhost:8765/QUIZ-SERVICE/quiz/create"
304+
},
305+
"response": []
306+
},
307+
{
308+
"name": "submit quiz",
309+
"request": {
310+
"method": "POST",
311+
"header": [],
312+
"body": {
313+
"mode": "raw",
314+
"raw": "[\r\n {\r\n \"id\":3,\r\n \"response\": \"Java Question Generation - 1\"\r\n }\r\n]",
315+
"options": {
316+
"raw": {
317+
"language": "json"
318+
}
319+
}
320+
},
321+
"url": "http://localhost:8765/QUIZ-SERVICE/quiz/submit/1"
322+
},
323+
"response": []
324+
},
325+
{
326+
"name": "get quiz",
327+
"request": {
328+
"method": "GET",
329+
"header": [],
330+
"url": "http://localhost:8765/QUIZ-SERVICE/quiz/get/1"
331+
},
332+
"response": []
333+
}
334+
]
335+
},
336+
{
337+
"name": "Question microservices",
338+
"item": [
339+
{
340+
"name": "getQuestions",
341+
"request": {
342+
"method": "POST",
343+
"header": [],
344+
"body": {
345+
"mode": "raw",
346+
"raw": "[2,4,7,8]",
347+
"options": {
348+
"raw": {
349+
"language": "json"
350+
}
351+
}
352+
},
353+
"url": "http://localhost:8765/QUESTION-SERVICE/question/getQuestions"
354+
},
355+
"response": []
356+
},
357+
{
358+
"name": "get Score",
359+
"request": {
360+
"method": "POST",
361+
"header": [],
362+
"body": {
363+
"mode": "raw",
364+
"raw": "[\r\n {\r\n \"id\": \"6\",\r\n \"response\": \"Abstract classes support multiple inheritance, while interfaces do not\"\r\n },\r\n {\r\n \"id\": \"7\",\r\n \"response\": \"Wronge ANS HERE\"\r\n },\r\n {\r\n \"id\": \"8\",\r\n \"response\": \"equals() method compares the contents of objects, while the == operator compares memory addresses\"\r\n }\r\n]",
365+
"options": {
366+
"raw": {
367+
"language": "json"
368+
}
369+
}
370+
},
371+
"url": "http://localhost:8765/QUESTION-SERVICE/question/getScore"
372+
},
373+
"response": []
374+
},
375+
{
376+
"name": "question generate",
377+
"request": {
378+
"method": "GET",
379+
"header": [],
380+
"url": "http://localhost:8765/QUESTION-SERVICE/question/generate"
381+
},
382+
"response": []
383+
}
384+
]
385+
}
386+
]
387+
}
388+
]
389+
}
390+
]
391+
}

0 commit comments

Comments
 (0)