Skip to content

Commit 92f1676

Browse files
authored
Merge pull request #174 from eldermoraes/master
Added changes to the Health Check section
2 parents 997553c + 44ade31 commit 92f1676

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

documentation/modules/ROOT/pages/09_fault-tolerance.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public interface SwapiService {
6161
@Path("/films/")
6262
@Produces(MediaType.APPLICATION_JSON)
6363
@Retry(maxRetries = 3, delay = 2000)
64-
Swapi getMovieByTitle(@QueryParam("search") String title);
64+
public Swapi getFilmById(@PathParam("id") String id);
6565
}
6666
----
6767

@@ -139,7 +139,7 @@ public interface SwapiService {
139139
@Produces(MediaType.APPLICATION_JSON)
140140
@Retry(maxRetries = 3, delay = 2000)
141141
@Fallback(SwapiFallback.class)
142-
Swapi getMovieByTitle(@QueryParam("search") String title);
142+
public Swapi getFilmById(@PathParam("id") String id);
143143
144144
public static class SwapiFallback implements FallbackHandler<Swapi> {
145145
@@ -220,7 +220,7 @@ public interface SwapiService {
220220
failureRatio=0.75,
221221
delay=5000
222222
)
223-
Swapi getMovieByTitle(@QueryParam("search") String title);
223+
public Swapi getFilmById(@PathParam("id") String id);
224224
225225
}
226226

0 commit comments

Comments
 (0)