Skip to content

GitSanje/TaskPulse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“˜ API Documentation

πŸ” Authentication

Endpoint Method Description
/users/create_user POST Register a new user
/users/login POST Login user and receive tokens
/users/logout POST Logout the current user
/users/me GET Get current user data
/users/refresh GET Refresh access token
/users/{id} DELETE Delete a user by ID

πŸ“© Register a New User

Endpoint: POST /users/create_user
Request Body:

{
  "email": "user@example.com",
  "password": "securePassword",
  "first_name": "John",
  "last_name": "Doe"
}

Response: 201 Created
User registered successfully.

πŸ”‘ Login

Endpoint: POST /users/login
Request Body:

{
  "email": "user@example.com",
  "password": "securePassword"
}

Response: 201 Created
Returns access and refresh tokens.


βœ… Tasks

Endpoint Method Description
/tasks GET Get all tasks
/tasks/create_task POST Create a new task
/tasks/{id} GET Get a task by ID
/tasks/{id} DELETE Delete a task by ID
/tasks/edit/{id} POST Edit a task
/tasks/user/{id} GET Get all tasks for a specific user

πŸ“ Create a Task

Endpoint: POST /tasks/create_task
Request Body:

{
  "user_id": "123",
  "title": "My Task",
  "description": "This is a test task",
  "status": "pending",
  "priority": "high",
  "due_date": "2025-05-01T12:00:00Z"
}

Response: 201 Created
Returns the created task.

πŸ“Œ Get Tasks for a User

Endpoint: GET /tasks/user/{id}
Example: /tasks/user/123
Response: 200 OK
Returns an array of tasks for the user.


πŸ“€ Edit a Task

Endpoint: POST /tasks/edit/{id}
Request Body:

{
  "title": "Updated Title",
  "description": "Updated Description",
  "status": "done",
  "priority": "low",
  "due_date": "2025-05-02T09:00:00Z"
}

Response: 201 Created
Task updated successfully.



About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors