Subversion Repositories SmartDukaan

Rev

Rev 22931 | Rev 23568 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22931 Rev 23273
Line 54... Line 54...
54
		shopRepository.persist(shop);
54
		shopRepository.persist(shop);
55
		return responseSender.ok(ResponseCodeHolder.getMessage("API_OK_1000"));
55
		return responseSender.ok(ResponseCodeHolder.getMessage("API_OK_1000"));
56
		
56
		
57
	}
57
	}
58
	
58
	
59
	@RequestMapping(value = ProfitMandiConstants.URL_SHOP_ALL, method=RequestMethod.GET)
-
 
60
	public ResponseEntity<?> getAll(HttpServletRequest request, @RequestParam(name = ProfitMandiConstants.PAGE_NUMBER) int pageNumber, @RequestParam(name = ProfitMandiConstants.PAGE_SIZE) int pageSize){
-
 
61
		LOGGER.info("requested url : "+request.getRequestURL().toString());
-
 
62
		return responseSender.ok(shopRepository.selectAll(pageNumber, pageSize));
-
 
63
	}
-
 
64
	@RequestMapping(value = ProfitMandiConstants.URL_SHOP_ID, method=RequestMethod.GET)
59
	@RequestMapping(value = ProfitMandiConstants.URL_SHOP_ID, method=RequestMethod.GET)
65
	public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id)throws ProfitMandiBusinessException{
60
	public ResponseEntity<?> getById(HttpServletRequest request, @RequestParam(name = "id") int id)throws ProfitMandiBusinessException{
66
		LOGGER.info("requested url : "+request.getRequestURL().toString());
61
		LOGGER.info("requested url : "+request.getRequestURL().toString());
67
		return responseSender.ok(shopRepository.selectById(id));
62
		return responseSender.ok(shopRepository.selectById(id));
68
	}
63
	}