Skip to content

Commit e83da40

Browse files
generate and publish latest API documentation across all endpoints
1 parent 3d8a018 commit e83da40

6 files changed

Lines changed: 1534 additions & 10 deletions

File tree

apps/admin-service/src/swagger-output.json

Lines changed: 287 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,291 @@
1010
"schemes": [
1111
"http"
1212
],
13-
"paths": {}
13+
"paths": {
14+
"/get-all-products": {
15+
"get": {
16+
"description": "",
17+
"parameters": [
18+
{
19+
"name": "page",
20+
"in": "query",
21+
"type": "string"
22+
},
23+
{
24+
"name": "limit",
25+
"in": "query",
26+
"type": "string"
27+
}
28+
],
29+
"responses": {
30+
"200": {
31+
"description": "OK"
32+
}
33+
}
34+
}
35+
},
36+
"/get-all-events": {
37+
"get": {
38+
"description": "",
39+
"parameters": [
40+
{
41+
"name": "page",
42+
"in": "query",
43+
"type": "string"
44+
},
45+
{
46+
"name": "limit",
47+
"in": "query",
48+
"type": "string"
49+
}
50+
],
51+
"responses": {
52+
"200": {
53+
"description": "OK"
54+
}
55+
}
56+
}
57+
},
58+
"/get-all-admins": {
59+
"get": {
60+
"description": "",
61+
"responses": {
62+
"200": {
63+
"description": "OK"
64+
}
65+
}
66+
}
67+
},
68+
"/get-all-sellers": {
69+
"get": {
70+
"description": "",
71+
"parameters": [
72+
{
73+
"name": "page",
74+
"in": "query",
75+
"type": "string"
76+
},
77+
{
78+
"name": "limit",
79+
"in": "query",
80+
"type": "string"
81+
}
82+
],
83+
"responses": {
84+
"200": {
85+
"description": "OK"
86+
}
87+
}
88+
}
89+
},
90+
"/get-all-users": {
91+
"get": {
92+
"description": "",
93+
"parameters": [
94+
{
95+
"name": "page",
96+
"in": "query",
97+
"type": "string"
98+
},
99+
{
100+
"name": "limit",
101+
"in": "query",
102+
"type": "string"
103+
}
104+
],
105+
"responses": {
106+
"200": {
107+
"description": "OK"
108+
}
109+
}
110+
}
111+
},
112+
"/add-new-admin": {
113+
"put": {
114+
"description": "",
115+
"parameters": [
116+
{
117+
"name": "body",
118+
"in": "body",
119+
"schema": {
120+
"type": "object",
121+
"properties": {
122+
"email": {
123+
"example": "any"
124+
}
125+
}
126+
}
127+
}
128+
],
129+
"responses": {
130+
"200": {
131+
"description": "OK"
132+
}
133+
}
134+
}
135+
},
136+
"/get-all": {
137+
"get": {
138+
"description": "",
139+
"responses": {
140+
"200": {
141+
"description": "OK"
142+
}
143+
}
144+
}
145+
},
146+
"/ban-user/{id}": {
147+
"put": {
148+
"description": "",
149+
"parameters": [
150+
{
151+
"name": "id",
152+
"in": "path",
153+
"required": true,
154+
"type": "string"
155+
},
156+
{
157+
"name": "body",
158+
"in": "body",
159+
"schema": {
160+
"type": "object",
161+
"properties": {
162+
"reason": {
163+
"example": "any"
164+
}
165+
}
166+
}
167+
}
168+
],
169+
"responses": {
170+
"200": {
171+
"description": "OK"
172+
}
173+
}
174+
}
175+
},
176+
"/unban-user/{id}": {
177+
"put": {
178+
"description": "",
179+
"parameters": [
180+
{
181+
"name": "id",
182+
"in": "path",
183+
"required": true,
184+
"type": "string"
185+
}
186+
],
187+
"responses": {
188+
"200": {
189+
"description": "OK"
190+
}
191+
}
192+
}
193+
},
194+
"/get-site-config": {
195+
"get": {
196+
"description": "",
197+
"responses": {
198+
"200": {
199+
"description": "OK"
200+
}
201+
}
202+
}
203+
},
204+
"/update-categories": {
205+
"put": {
206+
"description": "",
207+
"parameters": [
208+
{
209+
"name": "body",
210+
"in": "body",
211+
"schema": {
212+
"type": "object",
213+
"properties": {
214+
"categories": {
215+
"example": "any"
216+
},
217+
"subCategories": {
218+
"example": "any"
219+
}
220+
}
221+
}
222+
}
223+
],
224+
"responses": {
225+
"200": {
226+
"description": "OK"
227+
}
228+
}
229+
}
230+
},
231+
"/upload-logo": {
232+
"post": {
233+
"description": "",
234+
"parameters": [
235+
{
236+
"name": "body",
237+
"in": "body",
238+
"schema": {
239+
"type": "object",
240+
"properties": {
241+
"fileName": {
242+
"example": "any"
243+
}
244+
}
245+
}
246+
}
247+
],
248+
"responses": {
249+
"201": {
250+
"description": "Created"
251+
}
252+
}
253+
}
254+
},
255+
"/upload-banner": {
256+
"post": {
257+
"description": "",
258+
"parameters": [
259+
{
260+
"name": "body",
261+
"in": "body",
262+
"schema": {
263+
"type": "object",
264+
"properties": {
265+
"fileName": {
266+
"example": "any"
267+
}
268+
}
269+
}
270+
}
271+
],
272+
"responses": {
273+
"201": {
274+
"description": "Created"
275+
}
276+
}
277+
}
278+
},
279+
"/get-all-notifications": {
280+
"get": {
281+
"description": "",
282+
"responses": {
283+
"200": {
284+
"description": "OK"
285+
}
286+
}
287+
}
288+
},
289+
"/get-user-notifications": {
290+
"get": {
291+
"description": "",
292+
"responses": {
293+
"200": {
294+
"description": "OK"
295+
}
296+
}
297+
}
298+
}
299+
}
14300
}

0 commit comments

Comments
 (0)