Advertisement
Georgi_Benchev

Untitled

Jan 22nd, 2025
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. @GetMapping
  2.     public List<Beer> getBeers(@RequestParam(required = false) String name,
  3.                                @RequestParam(required = false) Double minAbv,
  4.                                @RequestParam(required = false) Double maxAbv,
  5.                                @RequestParam(required = false) Integer styleId,
  6.                                @RequestParam(required = false) String sortBy,
  7.                                @RequestParam(required = false) String orderBy) {
  8.         FilterOptions filterOptions = new FilterOptions(name, minAbv, maxAbv, styleId, sortBy, orderBy);
  9.  
  10.         return beerService.getAll(filterOptions);
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement