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

Ivan Franchin
Javarevisited
Published in
7 min readSep 18, 2023

--

Photo by Henry & Co. on Unsplash

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.

11 stories

Without any further ado, let’s get started.

Prerequisites

--

--

Ivan Franchin
Javarevisited

Lead Software Developer with BS and MS in Computer Science. Writing about Java, Spring, software development in general, and emerging technologies.