domino-rest
domino-rest copied to clipboard
Add support for JAX-RS Resource Locators and Sub Resources
Support for JAX-RS Resource Locators and Sub Resources will be appreciated. See docs: https://docs.jboss.org/resteasy/docs/1.0.1.GA/userguide/html/JAX-RS_Resource_Locators_and_Sub_Resources.html https://dennis-xlc.gitbooks.io/restful-java-with-jax-rs-2-0-2rd-edition/content/en/part1/chapter4/subresource_locators.html
@Path("/")
public class ShoppingRestRestource {
@Path("/customers/{id}")
public Customer getCustomer(@PathParam("id") int id) {
CustomerRestRestource custRestResource = ...; // Find a customer object
return custRestResource;
}
}
public class CustomerRestRestource {
@GET
public String get() {...}
@Path("/address")
public String getAddress() {...}
}