Create a Blog REST API with Spring Boot

What you'll learn

In this project, you’ll create and customize domain models and repositories for blog posts and their author. Then we'll see how Spring Boot and Spring Data REST automatically export those domain objects to a REST API.

  1. Set up your local environment for projects.
  2. Create the Post Repository interface and use it to save data to the database.
  3. add the relationship between Post and Author and then add Author data to the database.
  4. add versions to the entities and to the API, then add validation.

Table of contents

Setup
30m
  • Set up your local environment for projects. We'll walk you through everything you need to know, including how to install and configure your environment to be able to complete all of the tasks.
Create the Post Repository and Save Data
30m
  • Create the Post Repository interface and use it to save data to the database.
Add Author Relationships and Data
30m
  • In this module we will add the relationship between Post and Author and then add Author data to the database. We'll also hide different REST resources.
Versioning and Validation
15m
  • In this module we'll add versions to the entities and to the api. We'll also add validation.

Course FAQ

What is Spring Boot?
What is Spring Data REST used for?
Who is this Project for?
What will I learn in this Project?

About the author

Sarah just finished her PhD in Computer Science and in that process found two loves: inventing things and teaching. Working at Pluralsight allows her to do what she loves and work with some amazing people. When she's not teaching she's outside, enjoying the Florida sunshine with her family.

Ready to upskill? Get started