diff --git a/README.adoc b/README.adoc index 1942632..b29e699 100644 --- a/README.adoc +++ b/README.adoc @@ -9,7 +9,7 @@ . Download and install the following services: .. https://www.rabbitmq.com/download.html[RabbitMQ] .. https://www.mongodb.org/downloads[MongoDB] -.. http://neo4j.com/download/other-releases/[Neo4J Community Editioni] - version 2.1.x - Cypher changes won't make it possible to work with 2.2.x +.. https://neo4j.com/download/other-releases/[Neo4J Community Editioni] - version 2.1.x - Cypher changes won't make it possible to work with 2.2.x . Either from the IDE or the command line (i.e. `java -jar target/appname.jar`), run the applications in the following order: .. `springbox-config-server` diff --git a/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/catalog/CatalogIntegrationService.java b/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/catalog/CatalogIntegrationService.java index 5db73de..c5fc11b 100644 --- a/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/catalog/CatalogIntegrationService.java +++ b/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/catalog/CatalogIntegrationService.java @@ -31,7 +31,7 @@ public Observable getMovie(final String mlId) { return new ObservableResult() { @Override public Movie invoke() { - final Movie movie = restTemplate.getForObject("http://springbox-catalog/movies/{mlId}", Movie.class, mlId); + final Movie movie = restTemplate.getForObject("https://springbox-catalog/movies/{mlId}", Movie.class, mlId); log.debug(movie); return movie; } diff --git a/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/recommendations/RecommendationsIntegrationService.java b/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/recommendations/RecommendationsIntegrationService.java index 0ad4b23..acc2eeb 100644 --- a/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/recommendations/RecommendationsIntegrationService.java +++ b/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/recommendations/RecommendationsIntegrationService.java @@ -43,7 +43,7 @@ public List invoke() { ParameterizedTypeReference> responseType = new ParameterizedTypeReference>() { }; log.debug(String.format("Calling springbox-recommendations service to load recommendations for mlId: %s", mlId)); - return unsecuredTemplate.exchange("http://springbox-recommendations/recommendations/forMovie/{mlId}", HttpMethod.GET, null, responseType, mlId).getBody(); + return unsecuredTemplate.exchange("https://springbox-recommendations/recommendations/forMovie/{mlId}", HttpMethod.GET, null, responseType, mlId).getBody(); } }; } @@ -54,7 +54,7 @@ public Observable likes(final String userName, final String mlId) { @Override public Boolean invoke() { log.debug(String.format("Calling springbox-recommendations service to load like answer for mlId: %s and movie: %s", mlId, userName)); - Boolean answer = restTemplate.getForObject("http://springbox-recommendations/does/{userName}/like/{mlId}", Boolean.class, userName, mlId); + Boolean answer = restTemplate.getForObject("https://springbox-recommendations/does/{userName}/like/{mlId}", Boolean.class, userName, mlId); log.debug(String.format("Answer from springbox-recommendations service for mlId: %s and movie: %s = %s", mlId, userName, answer)); return answer; } diff --git a/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/reviews/ReviewsIntegrationService.java b/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/reviews/ReviewsIntegrationService.java index 13cf7db..c039ce9 100644 --- a/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/reviews/ReviewsIntegrationService.java +++ b/springbox-api-gateway/src/main/java/io/springbox/apigateway/services/reviews/ReviewsIntegrationService.java @@ -35,7 +35,7 @@ public Observable> reviewsFor(String mlId) { public List invoke() { ParameterizedTypeReference> responseType = new ParameterizedTypeReference>() { }; - return restTemplate.exchange("http://springbox-reviews/reviews/{mlId}", HttpMethod.GET, null, responseType, mlId).getBody(); + return restTemplate.exchange("https://springbox-reviews/reviews/{mlId}", HttpMethod.GET, null, responseType, mlId).getBody(); } }; }