Skip to content
This repository was archived by the owner on Feb 25, 2022. It is now read-only.

URL Cleanup #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Observable<Movie> getMovie(final String mlId) {
return new ObservableResult<Movie>() {
@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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public List<Movie> invoke() {
ParameterizedTypeReference<List<Movie>> responseType = new ParameterizedTypeReference<List<Movie>>() {
};
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();
}
};
}
Expand All @@ -54,7 +54,7 @@ public Observable<Boolean> 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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public Observable<List<Review>> reviewsFor(String mlId) {
public List<Review> invoke() {
ParameterizedTypeReference<List<Review>> responseType = new ParameterizedTypeReference<List<Review>>() {
};
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();
}
};
}
Expand Down