Container-Item RESTful web services consist of an item resource class and its container resource class. Both item and container use Java API for RESTful Web Service (JSR-311).
There are two ways to add an item resource to a container-item RESTful service. One way is to use the POST method on the container resource class. In this case, the URI for the newly created item resource is determined by the container resource. The other way to add an item resource is to use the PUT method on the item resource class. This approach is called the Client-Controlled Container-Item pattern, because the URI for the item resource is determined by the client and not the container resource.
This panel contains the following fields, which specify the class name, URI, and representation type of the resource.
/Item.ItemResource.ItemsResource.@Path annotation for the container's method that gets an instance of the item resource. For Container-Item services, the Path is a variable that identifies individual instances of the item resource class. The default value of Path is {id}.@Path annotation for the container class declaration. By default the Path is /Items.@Produces and @Consumes annotations. The default MIME type is application/xml. Therefore the default @Produces and @Consumes annotations are @Produces("application/xml") and @Consumes("application/xml").java.lang.String.java.lang.String.