@@ -317,6 +317,43 @@ paths:
317
317
' 404 ' :
318
318
$ref : ' #/components/responses/NotFoundError'
319
319
320
+ /users/me/{otp} :
321
+ get :
322
+ tags :
323
+ - session
324
+ summary : Get user associated with OTP
325
+ description : Get user associated with the OTP used for totem installation
326
+ operationId : getUserByOTP
327
+ parameters :
328
+ - name : otp
329
+ in : path
330
+ description : OTP used for totem installation
331
+ required : true
332
+ schema :
333
+ type : string
334
+ example : " 123456"
335
+ responses :
336
+ ' 200 ' :
337
+ description : User retrieved successfully
338
+ content :
339
+ application/json :
340
+ schema :
341
+ $ref : ' #/components/schemas/UserResponse'
342
+ ' 400 ' :
343
+ $ref : ' #/components/responses/InvalidInputError'
344
+ ' 422 ' :
345
+ $ref : ' #/components/responses/ValidationError'
346
+ ' 500 ' :
347
+ $ref : ' #/components/responses/InternalServerError'
348
+ ' 503 ' :
349
+ $ref : ' #/components/responses/UnexpectedError'
350
+ ' 401 ' :
351
+ $ref : ' #/components/responses/UnauthorizedError'
352
+ ' 403 ' :
353
+ $ref : ' #/components/responses/ForbiddenError'
354
+ ' 404 ' :
355
+ $ref : ' #/components/responses/NotFoundError'
356
+
320
357
/users/me :
321
358
322
359
get :
@@ -1462,21 +1499,21 @@ paths:
1462
1499
' 404 ' :
1463
1500
$ref : ' #/components/responses/NotFoundError'
1464
1501
1465
- /zones/me/{username } :
1502
+ /zones/me/{otp } :
1466
1503
get :
1467
1504
tags :
1468
1505
- zone
1469
- summary : Get all zones of the specified user
1470
- description : Get all zones of the specified user
1471
- operationId : getUserZonesByUsername
1506
+ summary : Get all zones of the admin that generated the one-time password
1507
+ description : Get all zones of the admin that generated the one-time password
1508
+ operationId : getUserZonesByOTP
1472
1509
parameters :
1473
- - name : username
1510
+ - name : otp
1474
1511
in : path
1475
- description : Username of the user to get zones for
1512
+ description : One-time password of the user to get zones for
1476
1513
required : true
1477
1514
schema :
1478
1515
type : string
1479
- example : johndoe
1516
+ example : admin123
1480
1517
responses :
1481
1518
' 200 ' :
1482
1519
description : Successful operation
@@ -2015,14 +2052,11 @@ components:
2015
2052
otp :
2016
2053
type : string
2017
2054
example : " A7F9C2"
2018
- username :
2019
- type : string
2020
- example : " johndoe"
2021
2055
valid_until :
2022
2056
type : string
2023
2057
format : date-time
2024
2058
example : " 2025-06-11T09:45:00Z"
2025
- required : [otp, username, valid_until]
2059
+ required : [otp, valid_until]
2026
2060
2027
2061
BaseTicket :
2028
2062
type : object
0 commit comments