Skip to content

Commit ecd21fa

Browse files
committed
TO REMOVE: add get user password method for debug
1 parent 0915c4e commit ecd21fa

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

openapi.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,46 @@ paths:
545545
$ref: '#/components/responses/ForbiddenError'
546546
'404':
547547
$ref: '#/components/responses/NotFoundError'
548+
549+
# TODO: remove, this was implemented just for testing purposes
550+
/users/pw/{username}:
551+
get:
552+
tags:
553+
- user
554+
summary: Get password of a user
555+
description: Get hashed password of a user by username
556+
operationId: getUserPassword
557+
parameters:
558+
- name: username
559+
in: path
560+
required: true
561+
schema:
562+
type: string
563+
responses:
564+
'200':
565+
description: Password retrieved
566+
content:
567+
application/json:
568+
schema:
569+
type: object
570+
properties:
571+
password:
572+
type: string
573+
description: Password of the user
574+
'400':
575+
$ref: '#/components/responses/InvalidInputError'
576+
'422':
577+
$ref: '#/components/responses/ValidationError'
578+
'500':
579+
$ref: '#/components/responses/InternalServerError'
580+
'503':
581+
$ref: '#/components/responses/UnexpectedError'
582+
'401':
583+
$ref: '#/components/responses/UnauthorizedError'
584+
'403':
585+
$ref: '#/components/responses/ForbiddenError'
586+
'404':
587+
$ref: '#/components/responses/NotFoundError'
548588

549589
/users/me/cars:
550590

0 commit comments

Comments
 (0)