Package io.micronaut.http.hateoas
Interface Resource
- All Known Implementing Classes:
AbstractResource
,GenericResource
,JsonError
,VndError
Represents a REST resource in a hateoas architecture.
- Since:
- 1.1
- Author:
- Graeme Rocher
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Resource
deserialize
(GenericResource genericResource) Factory method for deserialization.default OptionalMultiValues<? extends Resource>
default OptionalMultiValues<? extends Link>
getLinks()
-
Field Details
-
LINKS
The links attribute.- See Also:
-
EMBEDDED
The embedded attribute.- See Also:
-
-
Method Details
-
getLinks
- Returns:
- The links for this resource
-
getEmbedded
- Returns:
- The embedded resources
-
deserialize
Factory method for deserialization.- Parameters:
genericResource
- The deserialized resource.- Returns:
- The deserialized resource.
-