| Line 26... |
Line 26... |
| 26 |
|
26 |
|
| 27 |
@Autowired
|
27 |
@Autowired
|
| 28 |
AddressRepository addressRepository;
|
28 |
AddressRepository addressRepository;
|
| 29 |
|
29 |
|
| 30 |
@RequestMapping(value = ProfitMandiConstants.URL_ADDRESS_ALL, method=RequestMethod.GET)
|
30 |
@RequestMapping(value = ProfitMandiConstants.URL_ADDRESS_ALL, method=RequestMethod.GET)
|
| 31 |
public ResponseEntity<?> getAll(HttpServletRequest request){
|
31 |
public ResponseEntity<?> getAll(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.PAGE_NUMBER) int pageNumber, @RequestParam(name = ProfitMandiConstants.PAGE_SIZE) int pageSize){
|
| 32 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
32 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
| 33 |
return responseSender.ok(addressRepository.selectAll());
|
33 |
return responseSender.ok(addressRepository.selectAll(pageNumber, pageSize));
|
| 34 |
}
|
34 |
}
|
| 35 |
|
35 |
|
| 36 |
@RequestMapping(value = ProfitMandiConstants.URL_ADDRESS_ID, method=RequestMethod.GET)
|
36 |
@RequestMapping(value = ProfitMandiConstants.URL_ADDRESS_ID, method=RequestMethod.GET)
|
| 37 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
|
37 |
public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id){
|
| 38 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|
38 |
LOGGER.info("requested url : "+request.getRequestURL().toString());
|