From 3eb9d194843a744e0f4659d45a7e419557943d75 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 11 Dec 2016 18:51:57 +0100 Subject: [PATCH] Fixing CallableCarController --- .../de/spring/webservices/rest/controller/CallableCarController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }; -- 2.1.4