Interface AcceptsCreate<P extends RestResource>
-
- All Known Implementing Classes:
AccountsCollection
,BranchesCollection
,ChangeEdits
,DashboardsCollection
,EmailsCollection
,GroupsCollection
,MembersCollection
,PluginsCollection
,ProjectsCollection
,StarredChanges
,SubgroupsCollection
,TagsCollection
public interface AcceptsCreate<P extends RestResource>
Optional interface forRestCollection
.Collections that implement this interface can accept a
PUT
orPOST
when the parse method throwsResourceNotFoundException
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RestModifyView<P,?>
create(P parent, IdString id)
Handle creation of a child resource.
-
-
-
Method Detail
-
create
RestModifyView<P,?> create(P parent, IdString id) throws RestApiException
Handle creation of a child resource.- Parameters:
parent
- parent collection handle.id
- id of the resource being created.- Returns:
- a view to perform the creation. The create method must embed the id into the newly returned view object, as it will not be passed.
- Throws:
RestApiException
- the view cannot be constructed.
-
-