コード例 #1
0
 @RequestMapping(value = "/", method = RequestMethod.GET)
 @ApiOperation(value = "Returns the list of Employee instances.")
 public Page<Employee> getEmployees(Pageable pageable) {
   LOGGER.debug("Rendering Employees list");
   return employeeService.findAll(pageable);
 }
コード例 #2
0
 @RequestMapping(value = "/search", method = RequestMethod.POST)
 @ApiOperation(value = "Returns the list of Employee instances matching the search criteria.")
 public Page<Employee> findEmployees(Pageable pageable, @RequestBody QueryFilter[] queryFilters) {
   LOGGER.debug("Rendering Employees list");
   return employeeService.findAll(queryFilters, pageable);
 }