Skip to content

Path parameters

Ahmad K. Bawaneh edited this page Feb 16, 2020 · 2 revisions

Path parameters

Domino-rest can map method argument to path variable using the @PathParam annotation.

@RequestFactory
public interface MoviesService {

    @Path("library/movies/{name}")
    @GET
    Movie getMovieByName(@PathParam("name") String movieName);
}

When the request is sent the {name} path will be replaced with the value of the movieName method argument.