public interface AcceptsPost<P extends RestResource>
RestCollection
.
Collections that implement this interface can accept a POST
directly on the collection
itself when no id was given in the path. This interface is intended to be used with
TopLevelResource collections. Nested collections often bind POST on the parent collection to the
view implementation handling the insertion of a new member.
Modifier and Type | Method and Description |
---|---|
RestModifyView<P,?> |
post(P parent)
Handle creation of a child resource by POST on the collection.
|
RestModifyView<P,?> post(P parent) throws RestApiException
parent
- parent collection handle.RestApiException
- the view cannot be constructed.