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.
Challenge: Add resource methods
From the course: Java EE: RESTful Service with JAX-RS 2.0
Challenge: Add resource methods
(chiming music) - [Instructor] Your first challenge is to go through remaining methods for the book resource and author resource classes and what we want are resource methods for the following URIs. For the BookResource, we want the method that updates the book with a given ISBN and for the AuthorResource, we want two methods, one that retrieves all of the authors in the system and another one that retrieves the author for the given ID. And this challenge shouldn't take more than about 15 minutes for you to complete.
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)
Define the REST contract3m 42s
-
(Locked)
Inheritance or XML configuration3m 25s
-
(Locked)
Define the API root3m 14s
-
Create the resource entity5m 37s
-
(Locked)
Create the resource methods6m 16s
-
(Locked)
Path parameters2m 35s
-
(Locked)
Add path paramaters3m 21s
-
@Consumes and @Produces2m 7s
-
(Locked)
Add the media types4m 56s
-
(Locked)
Challenge: Add resource methods31s
-
(Locked)
Solution: Add resource methods1m 56s
-
(Locked)
-
-
-
-