Skip to content

Commit

Permalink
fix apis doc file
Browse files Browse the repository at this point in the history
  • Loading branch information
Horlawhumy-dev committed Jul 2, 2024
1 parent 5a74a87 commit d693db6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api_doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ This application provides a RESTful API for Drugstoc Inventory Management.

Endpoints:

1. POST `/api/users/register/`
1. POST /api/users/register/
- Description: Create a new user
- Request Body: name, email, password, password2, address
- Response: name, email, password, password2, address

2. POST `/api/users/login/`
2. POST /api/users/login/
- Description: login user
- Request Body: email, password
- Response: id, metadata, refresh_token, access_token

3. GET `/api/users/profile`
3. GET /api/users/profile
- Description: Retrieve user profile by access token provided
- Response: all user fields

4. POST `/api/users/logout/`
- Description: Logout user
4. POST /api/users/logout/
- Description: Logout auth user
- Request Body: refresh_token
- Response: nil

0 comments on commit d693db6

Please sign in to comment.