Sending path parameters with Domino-rest is as easy annotating the method argument with @PathParam and this will automatically replace a path expression with the value of the argument when we make the call. for example having the following service :
@RequestFactory
public interface MoviesService {
@Path("library/movies/{name}")
@GET
Movie getMovieByName(@PathParam("name") String movieName);
}
Then making a request call like this :
MoviesServiceFactory.INSTANCE
.getMovieByName("hulk")
.onSuccess(movie ->{})
.send();
Then the request will be made to the following endpoint with the provided path param:
http://localhost:8080/service/library/movies/hulk
The expression {name} or :name will be replaced with the movieName argument value.