0% found this document useful (0 votes)
5 views1 page

New Text Document

The document outlines several API endpoints for user authentication and account management, including sign up, log in, log out, remember me, Google authentication, and creating a super user. Each endpoint specifies the HTTP method, a brief description, and the required request body format. These functionalities are essential for managing user accounts and authentication in an application.

Uploaded by

user uknown
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

New Text Document

The document outlines several API endpoints for user authentication and account management, including sign up, log in, log out, remember me, Google authentication, and creating a super user. Each endpoint specifies the HTTP method, a brief description, and the required request body format. These functionalities are essential for managing user accounts and authentication in an application.

Uploaded by

user uknown
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

**Sign Up Endpoint**:
- Method: POST
- Description: Allows a user to create a new account by providing their email,
username, and password.
- Request Body: { "email": "[email protected]", "username": "example_user",
"password": "password123" }

2. **Log In Endpoint**:
- Method: POST
- Description: Allows a user to log in using their email and password.
- Request Body: { "email": "[email protected]", "password": "password123" }

3. **Log Out Endpoint**:


- Method: POST
- Description: Logs out the currently authenticated user.

4. **Remember Me Endpoint**:
- Method: POST
- Description: Sets a cookie to remember the user's authentication status.

5. **Google Auth Endpoint**:


- Method: POST
- Description: Allows users to authenticate using their Google account.

6. **Create Super User Endpoint**:


- Method: POST
- Description: Creates a superuser account with administrative privileges.

You might also like