| Line 42... |
Line 42... |
| 42 |
return responseSender.badRequest(profitMandiBusinessException);
|
42 |
return responseSender.badRequest(profitMandiBusinessException);
|
| 43 |
}
|
43 |
}
|
| 44 |
}
|
44 |
}
|
| 45 |
|
45 |
|
| 46 |
@RequestMapping(value = ProfitMandiConstants.URL_API_ALL,method=RequestMethod.GET)
|
46 |
@RequestMapping(value = ProfitMandiConstants.URL_API_ALL,method=RequestMethod.GET)
|
| 47 |
public ResponseEntity<?> getAll(HttpServletRequest request){
|
47 |
public ResponseEntity<?> getAll(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.PAGE_NUMBER) int pageNumber, @RequestParam(name = ProfitMandiConstants.PAGE_SIZE) int pageSize){
|
| 48 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
48 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
| 49 |
return responseSender.ok(apiRepository.selectAll());
|
49 |
return responseSender.ok(apiRepository.selectAll(pageNumber, pageSize));
|
| 50 |
|
50 |
|
| 51 |
|
51 |
|
| 52 |
}
|
52 |
}
|
| 53 |
@RequestMapping(value = ProfitMandiConstants.URL_API_ID,method=RequestMethod.GET)
|
53 |
@RequestMapping(value = ProfitMandiConstants.URL_API_ID,method=RequestMethod.GET)
|
| 54 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
|
54 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
|