Skip to content

A RESTful backend application built using Java 17, Spring Boot, and Spring Data JPA for managing daily productivity tasks. This project allows users to register and track tasks, filter them by status or due date, and perform complete CRUD operations.

Notifications You must be signed in to change notification settings

shirishkanoje/Task_Tracker_API_Java_Springboot-_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Task_Tracker_API_Java_Springboot_Project

👤 UserController API Endpoints

POST /users/register

Request Body Example:

{

"name": "Shiru",

"email": "shiru@example.com",

"password": "password123"

}

Response:

201 Created – User registered successfully.

400 Bad Request – Email already in use.

Register_User

✅ TaskController API Endpoints

📝 POST /tasks?userId={userId}

Description:

Creates a new task for a specific user. The userId must be passed as a request parameter.

Request Param:

userId – ID of the user who owns this task

Request Body Example:

{

"title": "Submit Report",

"description": "Submit final task tracker report to supervisor",

"dueDate": "2025-06-05",

"status": "PENDING"

}

Response:

201 Created – Task created and linked to user.

400 Bad Request – User not found.

Create_Task

GET /tasks

Description:

Fetches a list of all tasks available in the database.

Response:

200 OK – List of all task objects.

Fetch_All_Tasks

GET /tasks/{id}

Description:

Fetches a specific task by its ID.

id – Task ID

Response:

200 OK – Task found

404 Not Found – Task does not exist

Get_Specific_Task_By_Id

PUT /tasks/update/{id}

Description:

Updates an existing task's details like title, description, due date, or status.

Path Variable:

id – Task ID

Request Body Example:

{

"title": "Updated Title",

"description": "Updated Description",

"dueDate": "2025-06-10",

"status": "IN_PROGRESS"

}

Response:

200 OK – Updated task returned

404 Not Found – Task does not exist

Update_Task

❌ DELETE /tasks/delete/{id}

Description:

Deletes the task with the specified ID.

Path Variable:

id – Task ID

Response:

200 OK – "Task deleted"

404 Not Found – Task not found

Delete_Task_By_ID

GET /tasks/status/{status}

Description:

Returns a list of tasks filtered by their status.

Path Variable:

status – Enum value: PENDING, IN_PROGRESS, or COMPLETED

Example:

/tasks/status/COMPLETED

Response:

200 OK – List of tasks matching the status

Get_Task_By_Status

⏰ GET /tasks/due/{yyyy-MM-dd}

Description:

Returns a list of tasks that are due on the specified date.

Path Variable:

dueDate – Date in yyyy-MM-dd format (e.g., 2025-06-10)

Response:

200 OK – List of tasks due on that date

Get_Task_By_DueDate

About

A RESTful backend application built using Java 17, Spring Boot, and Spring Data JPA for managing daily productivity tasks. This project allows users to register and track tasks, filter them by status or due date, and perform complete CRUD operations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages