From the course: Java EE: RESTful Service with JAX-RS 2.0
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Work with HATEOAS
From the course: Java EE: RESTful Service with JAX-RS 2.0
Work with HATEOAS
- [Narrator] In this video you're going to learn about HATEOAS and how it can be implemented in two different ways in the JaxOS application. So what is HATEOAS? Well first off, it stands for Hypermedia As The Engine of Application State. But what does this really mean? Well what it means in practical terms is that a client is given a way to navigate through and API purely by using hypermedia. This is often in the form of http links generated by an API's backend application. The overreaching objective is to decouple the client from the application in such a way that the application can change independently of the client. Okay, that might sound a little confusing so let's walk through few examples to see how this might work. So here we have a simplified Book resource which is represented by the JSON data string here. You have already learned that this JSON representation of a book is obtained by the client when it makes a GET request to this URL. But what URI does the application need…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
The HTTP response4m 24s
-
(Locked)
Build a response3m 24s
-
(Locked)
How to handle errors3m 19s
-
(Locked)
Implement an exception manager2m 46s
-
(Locked)
Work with HATEOAS4m 21s
-
(Locked)
HATEOAS and JAX-RS2m 59s
-
(Locked)
Add HATEOAS to the resource10m 33s
-
(Locked)
Challenge: Add exception handlers19s
-
(Locked)
Solution: Add exception handlers1m 2s
-
(Locked)
-
-
-