A
- the aggregate root type.I
- the aggregate root identifier type.D
- the representation type.public interface CreateResource<A extends AggregateRoot<I>,I,D> extends Resource<A,I,D>
Resource
for creating aggregates (the C of CRUD).CreateResource
,
ReadResource
,
UpdateResource
,
DeleteResource
,
Resource
Modifier and Type | Method and Description |
---|---|
default javax.ws.rs.core.Response |
create(D representation,
javax.ws.rs.core.UriInfo uriInfo)
The method that implements REST aggregate creation.
|
buildAggregateName, getAggregateRootClass, getFluentAssembler, getIdentifierClass, getPaginator, getRepository, getRepresentationClass
@POST @Produces(value="application/json") @Consumes(value="application/json") default javax.ws.rs.core.Response create(D representation, @Context javax.ws.rs.core.UriInfo uriInfo)
representation
- the representation of the aggregate as JSON request body.uriInfo
- context injected by JAX-RS.Response
.Copyright © 2013-2018–2019 SeedStack. All rights reserved.