[{base_url}] : https://group-todo-backend.azurewebsites.net/
Registers a new user in the system.
- Method:
POST - Body:
email(string, required): User's email address.password(string, required): User's password (at least 8 characters long).name(string, required): User's name.
- Status Code: 200 OK
- Body:
loggedInUser: User details excluding password and refresh token.accessToken: JWT access token.refreshToken: JWT refresh token.
Logs in an existing user.
- Method:
POST - Body:
email(string, required): User's email address.password(string, required): User's password.
- Status Code: 200 OK
- Body:
loggedInUser: User details excluding password and refresh token.accessToken: JWT access token.refreshToken: JWT refresh token.
Logs out the currently logged-in user.
- Method:
POST
- Status Code: 200 OK
- Body:
success:truemessage: "User Logged Out Successfully"
Resets the password for a user.
- Method:
POST - Body:
email(string, required): User's email address.password(string, required): New password (at least 8 characters long).
- Status Code: 200 OK
- Body:
success:truemessage: "Password Reset Successfully"
Verifies the user's email address.
- Method:
POST - Body:
token(string, required): Email verification token.
- Status Code: 200 OK
- Body:
success:truemessage: "Email verified successfully."
Secure routes require a valid access token for authorization.
Returns a message indicating that the user is authorized to access the route.
- Method:
GET
- Status Code: 200 OK
- Body:
message: "You are authorized to access this route"
Verifies the user's email address.
- Method:
GET
- Status Code: 200 OK
- Body:
success:truemessage: "Email verified successfully."
Generates an email verification token.
- Method:
POST - Body:
email(string, required): User's email address.
- Status Code: 200 OK
- Body:
success:truemessage: "Email verification token generated successfully."
- title (string, required): Title of the note.
- content (string): Content of the note.
- category (string, default: "Uncategorized"): Category of the note.
- Endpoint:
POST /api/v1/note/create - Request:
- Required:
title(string): Title of the note.
- Optional:
content(string): Content of the note.
- Required:
- Response:
success(boolean):truedata(object): Created note details.message(string): "Note created successfully"
- Endpoint:
PUT /api/v1/note/update/:id - Request:
- Optional:
title(string): New title of the note.content(string): New content of the note.
- Optional:
- Response:
success(boolean):truedata(object): Updated note details.message(string): "Note updated successfully"
- Endpoint:
DELETE /api/v1/note/delete/:id - Response:
success(boolean):truemessage(string): "Note deleted successfully"
- Endpoint:
GET /api/v1/note/getnotes - Response:
success(boolean):truedata(array): Array of notes.
- Endpoint:
GET /api/v1/note/getnote/:id - Response:
success(boolean):truedata(object): Note details.
-
Create a Note:
- Endpoint:
POST /api/v1/note/create - Body:
title(string, required): Title of the note.content(string): Content of the note.
- Endpoint:
-
Update a Note:
- Endpoint:
PUT /api/v1/note/update/:id - Body:
title(string): New title of the note.content(string): New content of the note.
- Endpoint:
-
Delete a Note:
- Endpoint:
DELETE /api/v1/note/delete/:id
- Endpoint:
-
Get All Notes:
- Endpoint:
GET /api/v1/note/getnotes
- Endpoint:
-
Get a Single Note:
- Endpoint:
GET /api/v1/note/getnote/:id
- Endpoint:
-
Route Not Found:
- Response:
success(boolean):falseerror(string): "Route not found"
- Response:
Please replace [{BaseURL}] with the actual base URL where your API is hosted. Adjust the documentation according to your specific requirements and conventions.