Annotation Interface RepositoryRestResource
Annotate a
Repository
with this to customize export mapping and rels.- Author:
- Oliver Gierke
-
Nested Class Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionThe description of the collection resource.The rel value to use when generating links to the collection resource.Class<?>
Configures the projection type to be used when embedding item resources into collections and related resources.boolean
Flag indicating whether this resource is exported at all.The description of the item resource.The rel value to use when generating links to the item resource.The path segment under which this resource is to be exported.
-
Element Details
-
exported
boolean exportedFlag indicating whether this resource is exported at all.- Returns:
- true if the resource is to be exported, false otherwise.
- Default:
- true
-
path
String pathThe path segment under which this resource is to be exported.- Returns:
- A valid path segment.
- Default:
- ""
-
collectionResourceRel
String collectionResourceRelThe rel value to use when generating links to the collection resource.- Returns:
- A valid rel value.
- Default:
- ""
-
collectionResourceDescription
Description collectionResourceDescriptionThe description of the collection resource.- Returns:
- Default:
- @org.springframework.data.rest.core.annotation.Description("")
-
itemResourceRel
String itemResourceRelThe rel value to use when generating links to the item resource.- Returns:
- A valid rel value.
- Default:
- ""
-
itemResourceDescription
Description itemResourceDescriptionThe description of the item resource.- Returns:
- Default:
- @org.springframework.data.rest.core.annotation.Description("")
-
excerptProjection
Class<?> excerptProjectionConfigures the projection type to be used when embedding item resources into collections and related resources. Defaults toRepositoryRestResource.None
, which indicates full rendering of the items in a collection resource and no inlining of related resources.- Returns:
- Default:
- org.springframework.data.rest.core.annotation.RepositoryRestResource.None.class
-