Skip to content
Back to projects

Project 05

TaskFlow API — Secure Task Management REST API

REST API · Security · Build pipeline

POST/api/tasksAuthorization:Bearer eyJhbGci…JWTroles · ownerUSERADMINPostgreSQL201

Overview

A production-oriented Spring Boot REST API for task management, with JWT authentication, USER and ADMIN roles, and ownership rules enforced in the service layer rather than only on routes.

It ships with PostgreSQL on Docker Compose, H2 for development and tests, OpenAPI documentation, and a GitHub Actions build pipeline.

The engineering work

  • 01Built the task-management REST API with Spring Boot and Spring Data JPA.
  • 02Secured it with Spring Security and JWT authentication, with USER and ADMIN roles.
  • 03Enforced ownership rules in the service layer, not only on routes.
  • 04Ran PostgreSQL with Docker Compose, and H2 for development and tests.
  • 05Documented the API with OpenAPI (Swagger) and added a GitHub Actions build pipeline.

Engineering focus

Authorization is checked where the data is handled, so access to a task depends on who owns it, not only on which route was called.

H2 keeps development and tests fast to run, while PostgreSQL on Docker Compose matches the production setup.

Next projectSales & Profitability Dashboard