|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/rest-apis-with-java-spring-data-rest-spring-boot-jpa-mysql-json-hal/
课程评论:没有评论
**课程名称:** 使用 Spring Data REST 和 Spring Boot 构建 RESTful API **课程概述:** 本课程旨在教授学员如何利用 Spring Data REST 和 Spring Boot 框架,轻松地将数据库暴露为 RESTful API。课程将涵盖 Spring Data JPA 的基础知识,并在此基础上深入讲解 Spring Data REST 的各项功能。学员将学习如何在 MySQL 数据库环境中进行实践,并了解如何将 Spring Data REST 应用于 MongoDB、Neo4j 等其他数据库。 **核心学习内容:** * **Spring Data JPA 基础:** 学习 Spring Data JPA 的核心概念,包括实体、仓库以及 CRUD 操作。 * **Spring Data REST 入门:** 掌握 Spring Data REST 的基本用法,学习如何自动生成 RESTful API,并进行增删改查操作。 * **HATEOAS 和 HAL:** 深入理解“应用状态作为超媒体引擎”(HATEOAS)的原理,并学习如何使用 Hypertext Application Language (HAL) 进行实现。 * **SQL 关系处理:** 学习如何在 Spring Data REST 中处理各种 SQL 数据库关系,包括一对一、一对多、多对多等,并控制关系的暴露。 * **JSON 自定义:** 使用 Jackson 库定制 JSON 响应,包括属性的重命名、忽略等。 * **API 验证:** 实现 RESTful API 的数据验证,确保 API 接口的健壮性。 * **分页与排序:** 掌握在 Spring Data REST 中实现 API 的分页和排序功能。 * **自定义 API:** 利用 Spring Data JPA 的 `findBy` 方法创建自定义的 RESTful API 接口。 * **Projection 和 Excerpt:** 学习使用 Projection 和 Excerpt 来动态定制 JSON 响应,提高 API 的灵活性。 * **HAL Explorer:** 了解 HAL Explorer 的作用,如何利用它来浏览和测试 RESTful API,以及作为 API 文档的替代方案。 **课程亮点:** * **实践导向:** 结合 Spring Boot 和 MySQL 数据库进行实操,巩固学习效果。 * **全面覆盖:** 涵盖 Spring Data REST 的主要功能和高级特性。 * **易于上手:** 从基础讲起,逐步深入,适合初学者。 * **实用技能:** 帮助学员快速掌握构建高效 RESTful API 的关键技能。
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 learnDevelop REST APIs with Spring Data RESTCustomize JSON Using Jackson LibrarySpring Data REST Using SQL RelationshipsValidations with Spring Data RESTPagination & Sorting with Spring Data RESTCustom APIs Using Spring Data RESTProjection & Excerpt with Spring Data RESTHAL ExplorerCourse 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