T
- the model's typeS
- the type of the collection item's identifier (e.g., Long
, String
, etc.)U
- the type of the collection's identifier. It must be a
subclass of Identifier<S>
.ActionRouter
instead@ConsumerType
@Deprecated
public interface ReusableNestedCollectionRouter<T,S,U extends Identifier<S>,W>
A reusable nested collection resource is the type of resource that isn't bound to a parent resource.
The type param provided for the collection ID must be unique in the whole application.
You can add the different supported routes for the nested collection resource
via the collectionRoutes(NestedCollectionRoutes.Builder)
method.
The union of an instance of this interface with a Representable
creates a complete
resource that behaves as its own API.
NestedCollectionRoutes.Builder
Modifier and Type | Method and Description |
---|---|
NestedCollectionRoutes<T,S,W> |
collectionRoutes(NestedCollectionRoutes.Builder<T,S,W> builder)
Deprecated.
As of 1.9.0, use
ActionRouter instead |
@Deprecated NestedCollectionRoutes<T,S,W> collectionRoutes(NestedCollectionRoutes.Builder<T,S,W> builder)
ActionRouter
insteadNestedCollectionRoutes
supported by the nested
collection resource. Use the provided routes builder to create the NestedCollectionRoutes
instance.builder
- the routes builder to use to create the NestedCollectionRoutes
instanceNestedCollectionRoutes.Builder