Class RestApiResource<T>

java.lang.Object
org.praxisplatform.uischema.rest.response.RestApiResource<T>
Type Parameters:
T - DTO encapsulado

public final class RestApiResource<T> extends Object
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 Details

    • of

      public static <T> RestApiResource<T> of(T content, org.springframework.hateoas.Links links)
    • of

      public static <T> RestApiResource<T> of(T content, Collection<org.springframework.hateoas.Link> links)
    • of

      public static <T> RestApiResource<T> of(T content)
    • getContent

      public T getContent()
    • getLinks

      public RestApiLinks getLinks()