Subversion Repositories SmartDukaan

Rev

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

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