Build REST APIs with Spring Data REST & Spring Boot

Published 2022-03-15
Platform Udemy
Rating 4.46
Number of Reviews 12
Number of Students 73
Price $34.99
Instructors
Infybuzz Learning
Subjects

Go to Udemy

REST APIs with Java Spring Framework & Spring Data JPA. Validations, Pagination, Sorting, Projection, Excerpt.

Do you want to expose your database with REST APIs ? If yes then you can go for Spring Data REST.

In this course you will learn Spring Data REST with Spring Data JPA & MySQL Database. Once you will learn Spring Data REST with Spring Data JPA then you can use Spring Data REST with other databases like MongoDB, Neo4j etc.


In this course, first you will learn basics of Spring Data JPA and then we will jump to Spring Data REST. After that you will learn how to handle SQL relationships while working with Spring Data REST.

In this course you will learn Hypermedia as the Engine of Application State (HATEOAS) principle and we will use Hypertext Application Language (HAL) for the implementation of HATEOAS.

You will learn how to customize JSON response using Jackson Library. Validations are very important while developing REST APIs and this course covers validations with Spring Data REST.

You will learn how to achieve Pagination & Sorting while working with Spring Data REST.

Spring Data JPA provides findBy methods and with that we can develop custom APIs using Spring Data REST.

To provide dynamic JSON response Spring Data REST provides Projection & Excerpt.

With HAL Explorer, you can get UI to call your APIs and it can be considered as REST API documentation.

In this course you will learn


Course Topics & Lectures :-

• Introduction To Spring Data REST

What is Spring Data ?

Problem Statement

What is Spring Data REST ?

What are HATEOAS and HAL ?


• Basics of Spring Data JPA

What is Spring Data JPA ?

Set Up MySQL Database

Create Spring Boot App

Spring Boot-MySQL Connection With JPA

Create First Entity Class

Create First Repository Using @Repository Annotation -DONE

Get All Records Using JPA

Get Single Record Using JPA

Save Record Using JPA

Update Record Using JPA

Delete Record Using JPA


• Getting Started with Spring Data REST

Overview of Spring Data REST

Create Spring Boot App with Spring Data REST

Spring Data REST In Action

Expose ID Field's Value

Create Record using Spring Data REST

Update Record using Spring Data REST

Partial Update using Http Patch and Spring Data REST

Delete Record using Spring Data REST

Configure API Path & Collection Key

Configure Base Path


• Customize JSON Using Jackson Library

@JsonProperty Usage

@JsonIgnore Usage


• Spring Data REST Using SQL Relationships

MySQL Database Overview

Configure Spring Boot App

Define SQL Relationships Using Spring Data JPA

Create Record with Reference

Cascade Delete Using Spring Data JPA

Restricting To Expose as REST Resource


• Validations with Spring Data REST

Introduction To Validations

Create Validator

Register Validator

Validator In Action

Validation While Updating Record


• Pagination & Sorting

Introduction To Pagination & Sorting

Pagination In Action

Configure Default Page Size

Sorting In Action


• Custom APIs Using Spring Data REST

Introduction To Custom APIs

REST API Using findBy Field

Find By Multiple Fields

Set Path For Custom API

Pagination with Custom APIs


• Projection & Excerpt In Spring Data REST

Introduction To Projection & Excerpt

Create Projection

Projection In Action

Concat Values Using Projection

More with Projection

Excerpt In Action


• HAL Explorer

Introduction To HAL Explorer

HAL Explorer In Action

Go to Udemy