| Line 211... |
Line 211... |
| 211 |
return responseSender.badRequest(profitMandiBusinessException);
|
211 |
return responseSender.badRequest(profitMandiBusinessException);
|
| 212 |
}
|
212 |
}
|
| 213 |
}
|
213 |
}
|
| 214 |
|
214 |
|
| 215 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_ALL, method = RequestMethod.GET)
|
215 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_ALL, method = RequestMethod.GET)
|
| 216 |
public ResponseEntity<?> getAll(HttpServletRequest request) {
|
216 |
public ResponseEntity<?> getAll(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.PAGE_NUMBER) int pageNumber, @RequestParam(name = ProfitMandiConstants.PAGE_SIZE) int pageSize) {
|
| 217 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|
217 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|
| 218 |
return responseSender.ok(userRepository.selectAll());
|
218 |
return responseSender.ok(userRepository.selectAll(pageNumber, pageSize));
|
| 219 |
}
|
219 |
}
|
| 220 |
|
220 |
|
| 221 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_ID, method = RequestMethod.GET)
|
221 |
@RequestMapping(value = ProfitMandiConstants.URL_USER_ID, method = RequestMethod.GET)
|
| 222 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id) {
|
222 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id) {
|
| 223 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|
223 |
LOGGER.info("requested url : " + request.getRequestURL().toString());
|