@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); }
@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); }