From the course: Creating Spring Boot Microservices
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Create APIs with Spring Data REST - Spring Boot Tutorial
From the course: Creating Spring Boot Microservices
Create APIs with Spring Data REST
- [Narrator] In this chapter, we will learn about Spring Data REST, which is a service for creating hypermedia-driven RESTful APIs. What is a hypermedia-driven RESTful API? According to Roy Fielding, who first published the REST API specification, an API is not truly RESTful unless we follow a uniform interface. One of his constraints for a uniform interface is followed when hypermedia as an engine of application state, or HATEOAS, is employed. A RESTful API should do more than expose resource endpoints over HTTP. It should also expose API's documentation and automatically provide navigation between resources. Hypermedia-driven APIs accomplish just that. The implementers of Spring Data REST agreed, and that's why Spring Data REST APIs are hypermedia-driven out of the box. No extra configuration is needed. In fact, you've seen it in action already. Remember a while back when we tested to see if a microservice was running properly? We invoked the localhost:8080/profile endpoint, and it…