Update README.md with new signup endpoint documentation
This commit is contained in:
parent
f4b9c49106
commit
85b7f8329f
12
README.md
12
README.md
@ -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
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user