From 44ade31b78dccd01f6ff65a251b1a364d8d184a1 Mon Sep 17 00:00:00 2001 From: Elder Moraes Date: Thu, 15 May 2025 08:58:14 -0300 Subject: [PATCH] Added changes to the Health Check section --- documentation/modules/ROOT/pages/09_fault-tolerance.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/documentation/modules/ROOT/pages/09_fault-tolerance.adoc b/documentation/modules/ROOT/pages/09_fault-tolerance.adoc index 7445e29..63b5141 100644 --- a/documentation/modules/ROOT/pages/09_fault-tolerance.adoc +++ b/documentation/modules/ROOT/pages/09_fault-tolerance.adoc @@ -61,7 +61,7 @@ public interface SwapiService { @Path("/films/") @Produces(MediaType.APPLICATION_JSON) @Retry(maxRetries = 3, delay = 2000) - Swapi getMovieByTitle(@QueryParam("search") String title); + public Swapi getFilmById(@PathParam("id") String id); } ---- @@ -139,7 +139,7 @@ public interface SwapiService { @Produces(MediaType.APPLICATION_JSON) @Retry(maxRetries = 3, delay = 2000) @Fallback(SwapiFallback.class) - Swapi getMovieByTitle(@QueryParam("search") String title); + public Swapi getFilmById(@PathParam("id") String id); public static class SwapiFallback implements FallbackHandler { @@ -220,7 +220,7 @@ public interface SwapiService { failureRatio=0.75, delay=5000 ) - Swapi getMovieByTitle(@QueryParam("search") String title); + public Swapi getFilmById(@PathParam("id") String id); }