I am using RESTEasy in my API development. My url is http://localhost:8080/project/player/M
or http://localhost:8080/project/player
it means am pasing {gender} as path param.
my problem is how to mapp this url to REST method, i use below mapping
@GET
@Path("player/{gender}")
@Produces("application/json")
but if use it, it maps for http://localhost:8080/project/player/M
but not for http://localhost:8080/project/player
.
i need a regular expression to map zero or more path parameters
Thanks.