From: Gustavo Martin Morcuende Date: Sun, 11 Dec 2016 17:51:57 +0000 (+0100) Subject: Fixing CallableCarController X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=3eb9d194843a744e0f4659d45a7e419557943d75;p=JavaForFun Fixing CallableCarController --- diff --git a/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/CallableCarController.java b/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/CallableCarController.java index 3092943..c989cdc 100644 --- a/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/CallableCarController.java +++ b/SpringJava/RxJava/web-services-spring-rxjava-server/src/main/java/de/spring/webservices/rest/controller/CallableCarController.java @@ -29,7 +29,7 @@ import de.spring.webservices.rest.business.service.AwesomeBusinessLogic; @RestController @RequestMapping("/api/callable/cars/") public class CallableCarController { - private static final Logger LOGGER = LoggerFactory.getLogger(DeferrableCarController.class); + private static final Logger LOGGER = LoggerFactory.getLogger(CallableCarController.class); private static final int PAGE = 2; private static final int PAGE_SIZE = 10; @@ -146,7 +146,7 @@ public class CallableCarController { Car createdCar = awesomeBusinessLogic.create(car); HttpHeaders headers = new HttpHeaders(); - headers.add(HttpHeaders.LOCATION, "/api/cars/" + createdCar.getId()); + headers.add(HttpHeaders.LOCATION, "/api/callable/cars/" + createdCar.getId()); return new ResponseEntity<>(createdCar, headers, HttpStatus.CREATED); };