File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ components:
71
71
User :
72
72
type : object
73
73
properties :
74
+ name :
75
+ type : string
74
76
email :
75
77
type : string
76
78
password :
@@ -82,11 +84,17 @@ components:
82
84
type : string
83
85
token :
84
86
type : string
87
+ refreshToken :
88
+ type : string
85
89
userId :
86
90
type : string
91
+ name :
92
+ type : string
87
93
responses :
88
94
UnauthorizedError :
89
95
description : Access token is missing or invalid
96
+ UnauthenticatedError :
97
+ description : Access token is missing, expired or invalid
90
98
securitySchemes :
91
99
bearerAuth :
92
100
type : http
@@ -290,6 +298,28 @@ paths:
290
298
description : The user has been deleted
291
299
401 :
292
300
$ref : ' #/components/responses/UnauthorizedError'
301
+ /users/{id}/tokens :
302
+ parameters :
303
+ - name : id
304
+ description : user id
305
+ in : path
306
+ required : true
307
+ schema :
308
+ type : string
309
+ get :
310
+ tags :
311
+ - Users
312
+ summary : Get new user tokens
313
+ description : Gets new user tokens
314
+ responses :
315
+ 200 :
316
+ description : Successful operation
317
+ content :
318
+ application/json :
319
+ schema :
320
+ $ref : " #/components/schemas/Auth"
321
+ 403 :
322
+ $ref : ' #/components/responses/UnauthenticatedError'
293
323
/users/{id}/words :
294
324
parameters :
295
325
- name : id
@@ -312,7 +342,7 @@ paths:
312
342
type : array
313
343
items :
314
344
$ref : " #/components/schemas/UserWord"
315
- 401 :
345
+ 402 :
316
346
$ref : ' #/components/responses/UnauthorizedError'
317
347
/users/{id}/words/{wordId} :
318
348
parameters :
You can’t perform that action at this time.
0 commit comments