feat: Adding observers/public/account

This commit is contained in:
Josepablo C
2025-06-05 00:48:19 -06:00
parent 9775df7577
commit 8fd7364558
15 changed files with 1122 additions and 1 deletions

View File

@@ -482,3 +482,17 @@ __This endpoint is only valid for carriers.__
- `PATCH /:id` : Updates data from specific element.
- `DELETE /:id` : Delete element from company. Returns the element data.
- `GET /:id` : Get data from specific element.
## Observers endpoints
### observers/public/account/
The full endpoint is `observers/public/account/`, and serves for the account credentials management, the same way it works for the common users at the endpoint `/public/account`, by the process of creating an OTP when requesting a new user or recovering the account password.
- `POST /client/authorize` or `POST /warehouse/authorize`: Authorize the access to the user identified by email:password.
- `GET /client/authorize/:session_token` or `GET /warehouse/authorize/:session_token`: Authorize the access to the user identified by the session token.
- `POST /client/signup` or `POST /warehouse/signup`: Requests an OTP to create a new account.
- `PATCH /client/signup` or `PATCH /warehouse/signup`: Confirms the account OTP.
- `POST /client/recover` or `POST /warehouse/recover`: Requests an OTP recover the account password.
- `PATCH /client/recover` or `PATCH /warehouse/recover`: Confirms the new password OTP.