From the course: Quarkus Essential Training
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Solution: REST - Quarkus Tutorial
From the course: Quarkus Essential Training
Solution: REST
(upbeat music) - [Instructor] So now, here's my solution to the challenge. The first thing I did was in our vendor repository, I added a new method, findByEmailAndName where I essentially combined the two. But if you look, I actually had to do a parameters with and section to make that work. Now, I created a services endpoint that responds at slash rest slash services and this looks very much the same as what we did for the customer endpoint. And in a similar faction, I did the same for the vendor endpoint. It responds at slash rest slash vendors. The one thing I want to point out is on my get vendors api that gets the collection, I take in both of those query params and then I essentially build a structure using some logic that says if they're both empty, go ahead and give me all of them. If they're not, then we have to go into a multi if block starting here online 29. So, if they're both populated give me the method…
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.