| Line 363... |
Line 363... |
| 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)
|
367 |
@RequestMapping(value = "/banners/{bannerType}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
| 368 |
public ResponseEntity<?> getBanners(@RequestParam String bannerType) {
|
368 |
public ResponseEntity<?> getBanners(@PathVariable String bannerType) {
|
| 369 |
return new ResponseEntity<>(mongoClient.getBannersByType(bannerType), HttpStatus.OK);
|
369 |
return new ResponseEntity<>(mongoClient.getBannersByType(bannerType), HttpStatus.OK);
|
| 370 |
}
|
370 |
}
|
| 371 |
|
371 |
|
| 372 |
@ApiImplicitParams({
|
372 |
@ApiImplicitParams({
|
| 373 |
@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") })
|