From the course: Jakarta Web Services

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Challenge: Travel app

Challenge: Travel app - Jakarta EE Tutorial

From the course: Jakarta Web Services

Challenge: Travel app

(bright music) - [Instructor] It is time for a challenge. In this challenge, I want you to implement a new resource method in our travel resource class. Here are the instructions. Travelers want to find out details of flights that fall within a given price range for a specific destination. I've already coded a method for you in the service class that queries this data from the database. You should get the code from the exercise files provided for you. There, you can find this method, findFlightsForPriceRange in the travel service class. Your task is to use the findFlightsForPriceRange method and build the REST endpoint that would give this data to the client. Attempt this challenge in two steps. In step one, implement a resource method that takes the destination as a query parameter, the min and max prices as two path parameters. Here's a small hint. You can pass multiple path parameters to a resource method as…

Contents