Skip to content

Latest commit

 

History

14 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Manager API

🚀 Task Manager API

Java SpringBoot REST API License

A simple Task Manager REST API built using Java and Spring Boot that allows users to create, manage, update, and delete tasks efficiently.

This backend service demonstrates CRUD operations, REST API design, and backend architecture principles.


🌐 Live API

Test the deployed API here:

https://task-manager-api-demo.onrender.com/tasks

Refresh or call multiple endpoints to test the API responses.


✨ Features

✔ Task CRUD Operations ✔ RESTful API architecture ✔ Lightweight backend service ✔ Easy API testing using Postman or Curl ✔ Clean controller-service architecture ✔ Cloud ready backend API


🛠 Tech Stack

Technology Usage
Java 17 Programming Language
Spring Boot Backend Framework
Maven Build Tool
REST API API Architecture
Render Cloud Deployment

📂 Project Structure

task-manager-api
│
├── src
│   ├── main
│   │   ├── java
│   │   │   └── task_manager
│   │   │        ├── controller
│   │   │        │    └── TaskController.java
│   │   │        │
│   │   │        ├── service
│   │   │        │    └── TaskService.java
│   │   │        │
│   │   │        └── TaskManagerApplication.java
│   │   │
│   │   └── resources
│   │        └── application.properties
│
├── pom.xml
└── README.md

🏗 Architecture Diagram

Client / Browser
      |
      | HTTP Request
      v
Spring Boot Controller
(TaskController)
      |
      v
Service Layer
(TaskService)
      |
      v
Business Logic
      |
      v
API Response

🔄 API Request Flow

Client Request
      |
      v
Controller Layer
      |
      v
Service Layer
      |
      v
Process Request
      |
      v
Send Response

🌐 API Endpoints

Method Endpoint Description
GET /tasks Get all tasks
GET /tasks/{id} Get task by ID
POST /tasks Create a new task
PUT /tasks/{id} Update task
DELETE /tasks/{id} Delete task

📦 Example Request

Create Task

POST /tasks

{
 "title": "Learn Spring Boot",
 "description": "Practice backend development",
 "completed": false
}

📦 Example Response

Successful Request

Task created successfully 🚀

Error Response

Task not found ❌

▶ Run Locally

Clone repository

git clone https://github.com/ChinmayaKumarSingh/Task-Manager-Api.git

Navigate to project

cd Task-Manager-Api

Run application

mvn spring-boot:run

🧪 Test API using Curl

Get all tasks

curl https://task-manager-api-demo.onrender.com/tasks

Create task

curl -X POST https://task-manager-api-demo.onrender.com/tasks \
-H "Content-Type: application/json" \
-d '{"title":"New Task","description":"Demo Task","completed":false}'

📈 Future Improvements

• Add database integration (MySQL / PostgreSQL) • Add authentication using JWT • Add Swagger API documentation • Add Docker containerization • Add task priority and filtering


👨‍💻 Author

Chinmaya Kumar Singh

Backend Developer Java | Spring Boot | REST APIs

GitHub https://github.com/ChinmayaKumarSingh

About

Spring Boot REST API for managing tasks with layered architecture.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages