Skip to content

A Java / Gradle / Spring Boot (v.3.0.4) / REST API service that can be connected to the todo app Angular project.

Notifications You must be signed in to change notification settings

ClaraCharriau/todo-app-service

Repository files navigation

Todo App API

A Java / Gradle / Spring Boot (v.3.0.4) / REST API service that can be connected to the todo app Angular project.

About the service

A simple Todolist application REST service, that connect with a PostgreSQL database.

What I learned from this project

  • Discovery of Spring Framework : inversion of control, dependency injection, annotations...
  • Writing a RESTful service using annotations, supporting JSON requests and responses
  • Personnalized exceptions
  • Spring Data integration
  • Entities to Dto mapping with Mapstruct
  • Unit testing with JUnit 5, Mockito
  • Documentation test with Spring RestDocs
  • Integration test with DBSetup, RestAssured
  • Docker Compose

Get all Todos

GET /todolist
Accept: application/json
Content-Type: application/json

{
    "id": "0464c4ee-9f34-492a-bc6f-f105ca841c30",
    "content": "responds to urgent emails",
    "category": "work",
    "urgent": true,
    "doneDate": "2023-03-24T10:39:28.977Z"
}

RESPONSE: HTTP 200

Get a specific todo

GET /todolist/{id}
Accept: application/json
Content-Type: application/json

{
    "id": "0464c4ee-9f34-492a-bc6f-f105ca841c30",
    "content": "responds to urgent emails",
    "category": "work",
    "urgent": true,
    "doneDate": "2023-03-24T10:39:28.977Z"
}

RESPONSE: HTTP 200

Create a todo

POST /todolist
Accept: application/json
Content-Type: application/json

{
    "id": "0464c4ee-9f34-492a-bc6f-f105ca841c30",
    "content": "responds to urgent emails",
    "category": "work",
    "urgent": true,
    "doneDate": "2023-03-24T10:39:28.977Z"
}

RESPONSE: HTTP 201 (Created)

About

A Java / Gradle / Spring Boot (v.3.0.4) / REST API service that can be connected to the todo app Angular project.

Topics

Resources

Stars

Watchers

Forks

Languages