Spring Boot | Spring Web | Spring Data JPA | PostgreSQL
Implementing a Spring Boot API using Spring Data JPA and PostgreSQL
Step-by-step guide on how to implement Movie API Spring Boot App
Published in
7 min readSep 18, 2023
In this article, we will implement a Spring Boot application called Movie API. We will use Spring Data JPA to communicate with the PostgreSQL database. Movie API will expose the following endpoints:
GET /api/movies
GET /api/movies/{imdbId}
POST /api/movies {"imdbId": "...", "title": "...", "year": ..., "actors": "..."}
PATCH /api/movies/{imdbId} {"title": "...", "year": ..., "actors": "..."}
DELETE /api/movies/{imdbId}
We’re using the Movie API as a base application in a series of articles. Throughout these articles, we’ll cover topics such as implementing unit or integration tests, introducing caching, deploying to Kubernetes, and more.
Without any further ado, let’s get started.