Subversion Repositories SmartDukaan

Rev

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

Rev 22408 Rev 22446
Line 362... Line 362...
362
	@RequestMapping(value = "/fofo/brands", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
362
	@RequestMapping(value = "/fofo/brands", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
363
	public ResponseEntity<?> getBrandsToDisplay() {
363
	public ResponseEntity<?> getBrandsToDisplay() {
364
		return new ResponseEntity<>(mongoClient.getBrandsToDisplay(), HttpStatus.OK);
364
		return new ResponseEntity<>(mongoClient.getBrandsToDisplay(), HttpStatus.OK);
365
	}
365
	}
366
	
366
	
-
 
367
	@RequestMapping(value = "/banners/{bannerType}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
-
 
368
	public ResponseEntity<?> getBanners() {
-
 
369
		return new ResponseEntity<>(mongoClient.getBannersByType(), HttpStatus.OK);
-
 
370
	}
-
 
371
	
367
	@ApiImplicitParams({
372
	@ApiImplicitParams({
368
		@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })	
373
		@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })	
369
	@RequestMapping(value = "/deals/skus/{skus}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
374
	@RequestMapping(value = "/deals/skus/{skus}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
370
	public ResponseEntity<?> getDealsBySkus(@PathVariable String skus) throws Throwable {
375
	public ResponseEntity<?> getDealsBySkus(@PathVariable String skus) throws Throwable {
371
		StringBuffer sb = new StringBuffer("/getDealsForNotification/");
376
		StringBuffer sb = new StringBuffer("/getDealsForNotification/");