@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface GenericParentId
Use this annotation when you want to depend just on one type of ID, instead of having to add implementations for all supported parents.
This annotation should always be used on an ActionRouter
method parameter
representing a generic parent ID.
If this annotation is used in a Retrieve
action,
resources linking to it will have to use GENERIC_PARENT_COLLECTION
as the LinkTo#resourceType
value
A PathIdentifierMapper
for the ID type must exist for Apio to automatically
convert it from the request.