Update README.md with new signup endpoint documentation

This commit is contained in:
Automated Action 2025-05-15 20:29:02 +00:00
parent f4b9c49106
commit 85b7f8329f

View File

@ -47,7 +47,7 @@ A FastAPI service providing user authentication and authorization features inclu
#### Register a new user #### Register a new user
``` ```
POST /users POST /auth/signup
``` ```
Request body: Request body:
```json ```json
@ -58,6 +58,16 @@ Request body:
"last_name": "Doe" "last_name": "Doe"
} }
``` ```
Response:
```json
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "bearer"
}
```
> Note: The signup endpoint returns authentication tokens directly, allowing immediate user access without a separate login step.
#### Login #### Login
``` ```