| Line 58... |
Line 58... |
| 58 |
return responseSender.badRequest(profitMandiBusinessException);
|
58 |
return responseSender.badRequest(profitMandiBusinessException);
|
| 59 |
}
|
59 |
}
|
| 60 |
}
|
60 |
}
|
| 61 |
|
61 |
|
| 62 |
@RequestMapping(value = ProfitMandiConstants.URL_SHOP_ALL, method=RequestMethod.GET)
|
62 |
@RequestMapping(value = ProfitMandiConstants.URL_SHOP_ALL, method=RequestMethod.GET)
|
| 63 |
public ResponseEntity<?> getAll(HttpServletRequest request){
|
63 |
public ResponseEntity<?> getAll(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.PAGE_NUMBER) int pageNumber, @RequestParam(name = ProfitMandiConstants.PAGE_SIZE) int pageSize){
|
| 64 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
64 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
| 65 |
return responseSender.ok(shopRepository.selectAll());
|
65 |
return responseSender.ok(shopRepository.selectAll(pageNumber, pageSize));
|
| 66 |
}
|
66 |
}
|
| 67 |
@RequestMapping(value = ProfitMandiConstants.URL_SHOP_ID, method=RequestMethod.GET)
|
67 |
@RequestMapping(value = ProfitMandiConstants.URL_SHOP_ID, method=RequestMethod.GET)
|
| 68 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
|
68 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
|
| 69 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
69 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
| 70 |
try {
|
70 |
try {
|