public interface AcceptsCreate<P extends RestResource>
RestCollection.
Collections that implement this interface can accept a PUT or POST when the
parse method throws ResourceNotFoundException.
| Modifier and Type | Method and Description |
|---|---|
<I> RestModifyView<P,I> |
create(P parent,
IdString id)
Handle creation of a child resource.
|
<I> RestModifyView<P,I> create(P parent, IdString id) throws RestApiException
parent - parent collection handle.id - id of the resource being created.RestApiException - the view cannot be constructed.