1. Domino REST
  2. Rest clients
  3. Matrix parameters

Matrix parameters

Domino REST supports matrix parameters on path segments. Use @MatrixParam to bind values like /movies;lang=en;region=eu to method arguments, keeping them separate from query parameters.

			@RequestFactory
public interface MoviesService {

    @Path("library/movies/:movieName")
    @GET
    Movie getMovieByName(@PathParam("movieName") String movieName);

    @Path("library/movies")
    @GET
    List<Movie> listMovies();

    @Path("library/movies/:name")
    @PUT
    @SuccessCodes({200})
    void updateMovie(@beanParam @RequestBody Movie movie);
}

		

Matrix parameters are appended to the path segment they belong to. When combined with other annotations (e.g., @QueryParam, @HeaderParam), Domino REST keeps each binding type separated and renders them in the correct location.

We are a group of passionate people who love what we do

Donate & Support Us