File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
documentation/modules/ROOT/pages Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments