juancarmore 029802787a Reapply "Revert commits 6c7bfd4 5638025 da7759d ba374ce cf84de4 39a9b7d e990c19"
This reverts commit 450aa85b887e2ce56052c8abe75fbe4722a2ef69.
2026-03-06 17:00:20 +01:00

39 lines
1.4 KiB
YAML

/users/profile:
get:
operationId: getUserProfile
summary: Get user profile
description: >
Retrieves the profile information of the authenticated user.
tags:
- Internal API - Users
security:
- accessTokenHeader: []
responses:
'200':
$ref: '../../components/responses/internal/success-get-profile.yaml'
'401':
$ref: '../../components/responses/unauthorized-error.yaml'
/users/change-password:
post:
operationId: changeUserPassword
summary: Change user password
description: >
Allows the authenticated user to change their password.
tags:
- Internal API - Users
security:
- accessTokenHeader: []
requestBody:
$ref: '../../components/requestBodies/internal/change-password-request.yaml'
responses:
'200':
$ref: '../../components/responses/internal/success-change-password.yaml'
'400':
$ref: '../../components/responses/internal/error-invalid-password.yaml'
'401':
$ref: '../../components/responses/unauthorized-error.yaml'
'422':
$ref: '../../components/responses/validation-error.yaml'
'500':
$ref: '../../components/responses/internal-server-error.yaml'