
Download Postman from its official website, install it on your operating system and local machine, then open it to craft requests with query params and a body payload.
Download and install MySQL server and MySQL Workbench on your local machine, start the service, connect with Workbench on port 3306, and prepare schemas for the Spring Boot app.
Explore how Spring Data serves as an umbrella for multiple databases, including MongoDB, Cassandra, and Neo4j, and learn the essentials of Spring Data REST for building RESTful APIs.
Create a Spring Boot app by setting up the Spring Boot project, adding Spring Web and MySQL dependencies, and wiring a controller to a service with component scanning.
Create a student repository interface, annotate with @Repository, and extend the repository to enable CRUD operations on the Glass entity with a Long ID, in a Spring Boot app.
Insert a new record into the sequel table using a post API and a json payload. Let Spring Data JPA handle persistence and auto-generated IDs while returning the created record.
Update a record via a put request with the ID in the payload, using Spring Data JPA's save. Create when the ID is null; update when it is non-null.
Annotate the student repository with RepositoryRestResource and set its collectionResourceRel to customize the api collection name for all student endpoints.
Learn how validations in Spring Data REST prevent inserting records when the first name is null and how clear error messages guide API consumers.
Learn how to enforce validations when updating records using an update validator, registered before update events, ensuring last name is not null or empty across rest resources.
Discover how to create custom APIs with Spring data rest and Spring Boot by writing repository methods (find by email, first name, last name) exposed automatically, avoiding explicit rest controllers.
Discover how to implement pagination with custom APIs in spring data rest and spring boot by adding pageable parameters, returning appropriate entity types, and enabling sorting by first name.
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
Develop REST APIs with Spring Data REST
Customize JSON Using Jackson Library
Spring Data REST Using SQL Relationships
Validations with Spring Data REST
Pagination & Sorting with Spring Data REST
Custom APIs Using Spring Data REST
Projection & Excerpt with Spring Data REST
HAL Explorer
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