Annotation Type ApiLink
This annotation can be used on a public field or method. The return type must be a string, an iterator of
strings or a collection that is iterable.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the scope in which the link will be serialized in. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSet this to true if you do not need this path mapped into the API space.The content type returned when following the link.The scope in which the link should be serialized.
-
Element Details
-
rel
String relThe relation type that this link represents.- Returns:
- the relation type
-
scope
ApiLink.SCOPE scopeThe scope in which the link should be serialized. If SCOPE.RESOURCE the link will be serialized for a resource that is the main entity. If SCOPE.INLINE the link will be serialized for a resource that is a sub-entity of another resource. By default the link will be serialized in both cases.- Returns:
- The scope in which this link should be serialized.
- Default:
RESOURCE
-
absolute
boolean absoluteSet this to true if you do not need this path mapped into the API space.- Returns:
trueif path is absolute,falseotherwise
- Default:
false
-
contentType
String contentTypeThe content type returned when following the link.- Returns:
- The content type
- Default:
""
-