Subversion Repositories SmartDukaan

Rev

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

Rev 22483 Rev 22485
Line 139... Line 139...
139
	@RequestMapping(value = ProfitMandiConstants.URL_CLICKS_ADD, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
139
	@RequestMapping(value = ProfitMandiConstants.URL_CLICKS_ADD, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
140
	@ApiImplicitParams({
140
	@ApiImplicitParams({
141
			@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
141
			@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
142
	@ApiOperation(value = "Register clicks")
142
	@ApiOperation(value = "Register clicks")
143
	public ResponseEntity<?> add(HttpServletRequest request, @PathVariable(value = "storeId") int sourceId,
143
	public ResponseEntity<?> add(HttpServletRequest request, @PathVariable(value = "storeId") int sourceId,
144
			@PathVariable(value = "storeProductId") String storeProductId, 
144
			@PathVariable(value = "storeProductId") int storeProductId, @RequestParam(value = "url") String url,
145
			@RequestParam(value = "url") String url,
-
 
146
			@RequestParam(value = "price") float price,
145
			@RequestParam(value = "price") float price,
147
			@RequestParam(value = "callback", required = false) String callback) throws Throwable {
146
			@RequestParam(value = "callback", required = false) String callback) throws Throwable {
148
 
147
 
149
		AddClickReponse response = new AddClickReponse();
148
		AddClickReponse response = new AddClickReponse();
150
		int userId = (int)request.getAttribute("userId");
149
		int userId = (int)request.getAttribute("userId");