A
- the aggregate root type.I
- the aggregate root identifier type.D
- the representation type.public interface DeleteResource<A extends AggregateRoot<I>,I,D> extends Resource<A,I,D>
Resource
for deleting aggregates (the D of CRUD).CreateResource
,
ReadResource
,
UpdateResource
,
DeleteResource
,
Resource
Modifier and Type | Method and Description |
---|---|
default void |
delete(I id)
The method that implements REST aggregate deletion.
|
buildAggregateName, getAggregateRootClass, getFluentAssembler, getIdentifierClass, getPaginator, getRepository, getRepresentationClass
@DELETE @Path(value="/{id}") default void delete(@PathParam(value="id") I id)
id
- the identifier of the aggregate to delete, passed as /{id}
path parameter. If
the identifier type is a complex object, it must have a constructor taking a single
String
parameter.Copyright © 2013-2018–2019 SeedStack. All rights reserved.