-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseazux_backend_Api.yaml
340 lines (340 loc) · 9.84 KB
/
seazux_backend_Api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
openapi: 3.0.0
info:
title: seazux_backend_Api
description: >-
**This is an URL shortened API service like bit.ly or cutt.ly. The API
service can take a long URL and convert it to a shorter URL. MongoDB is used
as the database. The long URL, short URL, and other details are stored in
the database**
version: 1.0.0
servers:
- url: https://seazux-backend.onrender.com
- url: https://worried-dungarees-hare.cyclic.app
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
tags:
- name: Users
description: >-
Users/Client Endpoints were all users or client are able to interact with
our Api
- name: Seazux_UrlRequest
description: >-
All UrlRequest Endpoints were all users or client are able to interact
with the Url endpiont making and recieving request and responseses.
- name: Seazux_Analytics
description: >-
All AnalyticsRequest Endpoints were all users or client are able to
interact with the Analytics endpiont making and recieving request and
responseses.
paths:
/auth-email/register:
post:
tags:
- Users
summary: SignUp
description: >-
At this Point in time Users get to register by providing their Username,
Email-Addresses and also Password. By making a `{POST}` request.
requestBody:
content:
application/json:
schema:
type: object
example:
username: Abu
email: um3@yup.com
password: pass12345678901
responses:
'200':
description: Successful response
content:
application/json: {}
/auth-email/login:
post:
tags:
- Users
summary: Login
description: >-
At this Point in time Users get to Login With their credentials which
are the Email and Passwords they Register. After a user login an
authorization token called the Bearer Token will be Created For that
User. By making also a `{POST}` request.
requestBody:
content:
application/json:
schema:
type: object
example:
email: um36@yup.com
password: pass12345678901
security:
- bearerAuth: []
responses:
'200':
description: Successful response
content:
application/json: {}
/auth-email/logout:
get:
tags:
- Users
summary: Logout
description: >-
At this Point in time Users get to Logout of their accounts by accessing
the logout Endpoint that is making the cookies expire. By making a
`{GET}` request
security:
- bearerAuth: []
responses:
'200':
description: Successful response
content:
application/json: {}
/api/v1/user/profile:
get:
tags:
- Users
summary: UserProfile
description: >-
At this Point in time Users that have registered and also Login will be
able to access this Endpoint which accesing their account profile and
also their account dashboard. By making a `{GET}` request
security:
- bearerAuth: []
responses:
'200':
description: Successful response
content:
application/json: {}
/api/v1/user/deleteAccount:
delete:
tags:
- Users
summary: DeleteProfile
description: >-
At this Point in time Login Users can access this endpiont in other to
Delete the Profile. By making a `{GET}` request.
responses:
'200':
description: Successful response
content:
application/json: {}
/api/v1/url/login-short:
post:
tags:
- Seazux_UrlRequest
summary: Short Url
description: >-
At this Point in time Login Users have access to make a long url to a
short url my making a `{POST}` request to the Api by Providing Body raw
JSON file with a variable name call `{FULL}`
requestBody:
content:
application/json:
schema:
type: object
example:
full: >-
https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository
responses:
'200':
description: Successful response
content:
application/json: {}
/uuCFEqC:
get:
tags:
- Seazux_UrlRequest
summary: GetShortUrlRedirection
description: >-
At this Point in time Login Users have access to redirect the short url
generated to get the accual result of the long url provided by making a
`{GET}` request to the Api by passing out the generated short url to the
endpoint as a `{PARAMS}.`
security:
- bearerAuth: []
responses:
'200':
description: Successful response
content:
application/json: {}
/api/v1/url/my-urls:
get:
tags:
- Seazux_UrlRequest
summary: GetUrls
description: >-
At this Point in time Login Users have access to the record of all their
generated short urls at the endpiont were they get to all that they have
generated. By making a `{GET}` request
security:
- bearerAuth: []
parameters:
- name: user
in: query
schema:
type: string
example: Abu1
responses:
'200':
description: Successful response
content:
application/json: {}
/api/v1/url/anony-short:
post:
tags:
- Seazux_UrlRequest
summary: Anonymos_Url
description: >-
This is a public Endpiont that is all Users Authorides and unautorised
can access it at the endpoint u get to generate ur short url token
without creating an account to our system. By making a `{POST}` request.
requestBody:
content:
application/json:
schema:
type: object
example:
full: https://yeun.github.io/open-color/
responses:
'200':
description: Successful response
content:
application/json: {}
/api/v1/url/view/uQNmErJ:
get:
tags:
- Seazux_UrlRequest
summary: viewUrl
description: >-
At this Point in time Login Users Can view their generated short url
also at the same time get a QR-code for the short url. By making a
`{GET}` request.
responses:
'200':
description: Successful response
content:
application/json: {}
/delete/MbrzqaP:
delete:
tags:
- Seazux_UrlRequest
summary: DeleteUrl
description: >-
At this Point in time Login Users get to Deleted their generated short
url. by making a `{DELETE}` request.
responses:
'200':
description: Successful response
content:
application/json: {}
/edit/MbrzqaP:
put:
tags:
- Seazux_UrlRequest
summary: EditUrl
description: >-
At this Point in time Login Users get to make Changes to thier generated
short url by making a `{PUT}` request.
requestBody:
content:
application/json:
schema:
type: object
example:
urlData:
urlName: First
captcha: 'true'
customUrl: 'true'
parameters:
- name: hash
in: query
schema:
type: string
example: 8gk2BwZ
responses:
'200':
description: Successful response
content:
application/json: {}
/api/analytics/url/uQNmErJ:
get:
tags:
- Seazux_Analytics
summary: GetUrlAnalytics
description: >-
The Get URL Analytics Data API `{GET}` request enables you to get
analytics data of a specific (IP, Browser, Browser Version, and many
more) for a shortened URL.
security:
- bearerAuth: []
responses:
'200':
description: Successful response
content:
application/json: {}
/api/analytics/getAll:
get:
tags:
- Seazux_Analytics
summary: GetAllAnalytics
description: >-
The Get URL Analytics Data API `{GET}` request enables you to get
analytics data (IP, Browser, Browser Version, and many more) for a
shortened URL.
responses:
'200':
description: Successful response
content:
application/json: {}
/api/analytics/clicks:
get:
tags:
- Seazux_Analytics
summary: GetAllClicks
description: >-
The Get URL Clicks s Data API `{GET}` request enables you to get all
clicks for a shortened URL.
parameters:
- name: hash
in: query
schema:
type: string
example: tZf1rOL
- name: duration
in: query
schema:
type: string
example: today
responses:
'200':
description: Successful response
content:
application/json: {}
/report/8gk2BwZ:
get:
tags:
- Seazux_Analytics
summary: genrateUrlReport
description: >-
The Get Generate Url-Report Data API `{GET}` request create beautiful
and engaging custom _reports_ for our Url. which is a feature coming
soon.
responses:
'200':
description: Successful response
content:
application/json: {}
/home:
get:
tags:
- default
summary: New Request
responses:
'200':
description: Successful response
content:
application/json: {}