STEP: Create Dynamic Web Project with JAX-RS support
STEP: Create JAX-RS resource with method that has unbound parameter
@Path( "/" )
public class CarResource {
@GET
@Path( "{id}" )
public Object getCar() {
return null ;
}
}
ASSERT: JAX-RS Explorer contains following endpoint
GET /{id:.*}
STEP: Bind parameter to field
@Path( "/" )
public class CarResource {
@PathParam( "id" )
private Integer id;
@GET
@Path( "{id}" )
public Object getCar() {
return null ;
}
}
ASSERT: Binding is reflected in JAX-RS Explorer
FAIL: JAX-RS Explorer was not updated