domino-rest icon indicating copy to clipboard operation
domino-rest copied to clipboard

Add support for JAX-RS Resource Locators and Sub Resources

Open masterdany88 opened this issue 3 years ago • 0 comments

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() {...}

}

masterdany88 avatar Dec 02 '21 15:12 masterdany88