From 85b7f8329f1e22c2852b8b1c120140fa3825ea96 Mon Sep 17 00:00:00 2001 From: Automated Action Date: Thu, 15 May 2025 20:29:02 +0000 Subject: [PATCH] Update README.md with new signup endpoint documentation --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 31a3f41..58aec4e 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ A FastAPI service providing user authentication and authorization features inclu #### Register a new user ``` -POST /users +POST /auth/signup ``` Request body: ```json @@ -58,6 +58,16 @@ Request body: "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 ```