Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @GetMapping
- public List<Beer> getBeers(@RequestParam(required = false) String name,
- @RequestParam(required = false) Double minAbv,
- @RequestParam(required = false) Double maxAbv,
- @RequestParam(required = false) Integer styleId,
- @RequestParam(required = false) String sortBy,
- @RequestParam(required = false) String orderBy) {
- FilterOptions filterOptions = new FilterOptions(name, minAbv, maxAbv, styleId, sortBy, orderBy);
- return beerService.getAll(filterOptions);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement