Skip to content

Commit c04c1a9

Browse files
committed
✨ Quiz & result calc. done, all API done, complete
full project complete
1 parent e54e137 commit c04c1a9

File tree

23 files changed

+574
-34
lines changed

23 files changed

+574
-34
lines changed
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
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": "Quiz",
11+
"item": [
12+
{
13+
"name": "add Quiz",
14+
"request": {
15+
"method": "POST",
16+
"header": [],
17+
"body": {
18+
"mode": "raw",
19+
"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}",
20+
"options": {
21+
"raw": {
22+
"language": "json"
23+
}
24+
}
25+
},
26+
"url": {
27+
"raw": "http://localhost:8080/quiz/create?category=Java&numQ=3&title=JavaQuiz",
28+
"protocol": "http",
29+
"host": [
30+
"localhost"
31+
],
32+
"port": "8080",
33+
"path": [
34+
"quiz",
35+
"create"
36+
],
37+
"query": [
38+
{
39+
"key": "category",
40+
"value": "Java"
41+
},
42+
{
43+
"key": "numQ",
44+
"value": "3"
45+
},
46+
{
47+
"key": "title",
48+
"value": "JavaQuiz"
49+
}
50+
]
51+
}
52+
},
53+
"response": []
54+
},
55+
{
56+
"name": "results - submit Quiz",
57+
"request": {
58+
"method": "POST",
59+
"header": [],
60+
"body": {
61+
"mode": "raw",
62+
"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]",
63+
"options": {
64+
"raw": {
65+
"language": "json"
66+
}
67+
}
68+
},
69+
"url": "http://localhost:8080/quiz/submit/1"
70+
},
71+
"response": []
72+
},
73+
{
74+
"name": "get Quiz",
75+
"request": {
76+
"method": "GET",
77+
"header": [],
78+
"url": "http://localhost:8080/quiz/get/1"
79+
},
80+
"response": []
81+
}
82+
]
83+
},
84+
{
85+
"name": "Question",
86+
"item": [
87+
{
88+
"name": "get All Questions",
89+
"request": {
90+
"method": "GET",
91+
"header": [],
92+
"url": "http://localhost:8080/question/allQuestions"
93+
},
94+
"response": []
95+
},
96+
{
97+
"name": "get Questions by Category",
98+
"request": {
99+
"method": "GET",
100+
"header": [],
101+
"url": "http://localhost:8080/question/category/Java"
102+
},
103+
"response": []
104+
},
105+
{
106+
"name": "add Questions",
107+
"request": {
108+
"method": "POST",
109+
"header": [],
110+
"body": {
111+
"mode": "raw",
112+
"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}",
113+
"options": {
114+
"raw": {
115+
"language": "json"
116+
}
117+
}
118+
},
119+
"url": "http://localhost:8080/question/add"
120+
},
121+
"response": []
122+
},
123+
{
124+
"name": "update Questions",
125+
"request": {
126+
"method": "PUT",
127+
"header": [],
128+
"body": {
129+
"mode": "raw",
130+
"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}",
131+
"options": {
132+
"raw": {
133+
"language": "json"
134+
}
135+
}
136+
},
137+
"url": "http://localhost:8080/question/update/3"
138+
},
139+
"response": []
140+
},
141+
{
142+
"name": "delete Questions",
143+
"request": {
144+
"method": "DELETE",
145+
"header": [],
146+
"url": "http://localhost:8080/question/delete/3"
147+
},
148+
"response": []
149+
}
150+
]
151+
},
152+
{
153+
"name": "Quiz Results",
154+
"item": [
155+
{
156+
"name": "results - submit Quiz",
157+
"request": {
158+
"method": "POST",
159+
"header": [],
160+
"body": {
161+
"mode": "raw",
162+
"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]",
163+
"options": {
164+
"raw": {
165+
"language": "json"
166+
}
167+
}
168+
},
169+
"url": "http://localhost:8080/quiz/submit/1"
170+
},
171+
"response": []
172+
}
173+
]
174+
}
175+
]
176+
}

QuizApp/Screenshots/ss10.PNG

216 KB
Loading

QuizApp/Screenshots/ss11.PNG

238 KB
Loading
240 KB
Loading

QuizApp/Screenshots/ss12.PNG

207 KB
Loading

QuizApp/Screenshots/ss13.PNG

207 KB
Loading

QuizApp/Screenshots/ss14.PNG

286 KB
Loading

QuizApp/Screenshots/ss15.PNG

265 KB
Loading

QuizApp/Screenshots/ss16.PNG

262 KB
Loading

QuizApp/Screenshots/ss17.PNG

256 KB
Loading

0 commit comments

Comments
 (0)