Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Servant.Hateoas.ContentType.Collection
Synopsis
- data Collection (t :: Type)
- data CollectionResource a = CollectionResource {}
- data CollectionItem a = CollectionItem {}
Documentation
data Collection (t :: Type) Source #
Data-Kind representing Content-Types of HATEOAS collections.
Type parameter t
is the Mime-Type suffix in application/vnd.collection+t
.
Instances
Accept (Collection JSON) Source # | |
Defined in Servant.Hateoas.ContentType.Collection Methods contentType :: Proxy (Collection JSON) -> MediaType # contentTypes :: Proxy (Collection JSON) -> NonEmpty MediaType # | |
ToJSON a => MimeRender (Collection JSON) (CollectionResource a) Source # | |
Defined in Servant.Hateoas.ContentType.Collection Methods mimeRender :: Proxy (Collection JSON) -> CollectionResource a -> ByteString # |
data CollectionResource a Source #
Resource wrapper for Collection
.
Constructors
CollectionResource | |
Instances
data CollectionItem a Source #
A single item inside a CollectionResource
.
Constructors
CollectionItem | |