Class RestApiResource<T>
java.lang.Object
org.praxisplatform.uischema.rest.response.RestApiResource<T>
- Type Parameters:
T- DTO encapsulado
Recurso canonico serializado dentro de colecoes/filter/cursor no envelope Praxis.
O objetivo deste tipo e estabilizar o JSON publico dos itens de colecao em `{ ...dtoFields, _links: { rel: { href } } }`, sem acoplar o contrato HTTP ao formato padrao do Spring HATEOAS fora do modo HAL.
-
Method Summary
Modifier and TypeMethodDescriptiongetLinks()static <T> RestApiResource<T> of(T content) static <T> RestApiResource<T> of(T content, Collection<org.springframework.hateoas.Link> links) static <T> RestApiResource<T> of(T content, org.springframework.hateoas.Links links)
-
Method Details
-
of
-
of
public static <T> RestApiResource<T> of(T content, Collection<org.springframework.hateoas.Link> links) -
of
-
getContent
-
getLinks
-