openapi-petstore-0.1.0.0: Auto-generated openapi-petstore API Client

Safe Haskell | Safe-Inferred
Language | Haskell2010

OpenAPIPetstore.MimeTypes

Contents

- ContentType MimeType
- Accept MimeType
- Consumes Class
- Produces Class
- Default Mime Types
- MimeType Class
- MimeRender Class
- MimeUnrender Class
- Custom Mime Types
  - MimeXmlCharsetutf16
  - MimeXmlCharsetutf8
  - MimeTextXml
  - MimeTextXmlCharsetutf16
  - MimeTextXmlCharsetutf8

Description

Synopsis

- data ContentType a = MimeType a => ContentType {
  - unContentType :: a
  }
- data Accept a = MimeType a => Accept {
  - unAccept :: a
  }
- class MimeType mtype => Consumes req mtype
- class MimeType mtype => Produces req mtype
- data MimeJSON = MimeJSON
- data MimeXML = MimeXML
- data MimePlainText = MimePlainText
- data MimeFormUrlEncoded = MimeFormUrlEncoded
- data MimeMultipartFormData = MimeMultipartFormData
- data MimeOctetStream = MimeOctetStream
- data MimeNoContent = MimeNoContent
- data MimeAny = MimeAny
- data NoContent = NoContent
- class Typeable mtype => MimeType mtype where
  - mimeTypes :: Proxy mtype -> [MediaType]
  - mimeType :: Proxy mtype -> Maybe MediaType
  - mimeType' :: mtype -> Maybe MediaType
  - mimeTypes' :: mtype -> [MediaType]
- class MimeType mtype => MimeRender mtype x where
  - mimeRender :: Proxy mtype -> x -> ByteString
  - mimeRender' :: mtype -> x -> ByteString
- mimeRenderDefaultMultipartFormData :: ToHttpApiData a => a -> ByteString
- class MimeType mtype => MimeUnrender mtype o where
  - mimeUnrender :: Proxy mtype -> ByteString -> Either String o
  - mimeUnrender' :: mtype -> ByteString -> Either String o
- data MimeXmlCharsetutf16 = MimeXmlCharsetutf16
- data MimeXmlCharsetutf8 = MimeXmlCharsetutf8
- data MimeTextXml = MimeTextXml
- data MimeTextXmlCharsetutf16 = MimeTextXmlCharsetutf16
- data MimeTextXmlCharsetutf8 = MimeTextXmlCharsetutf8

# ContentType MimeType

data ContentType a Source #

Constructors

MimeType a => ContentType |

Fields

- unContentType :: a

# Accept MimeType

data Accept a Source #

Constructors

MimeType a => Accept |

Fields

- unAccept :: a

# Consumes Class

class MimeType mtype => Consumes req mtype Source #

#### Instances

Instances details

Consumes Op123testSpecialTags MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.AnotherFake

Consumes CreateXmlItem MimeTextXml Source #

    text/xml

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeTextXmlCharsetutf16 Source #

    text/xml; charset=utf-16

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeTextXmlCharsetutf8 Source #

    text/xml; charset=utf-8

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeXmlCharsetutf16 Source #

    application/xml; charset=utf-16

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes CreateXmlItem MimeXmlCharsetutf8 Source #

    application/xml; charset=utf-8

Instance details Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Consumes FakeOuterBooleanSerialize mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Consumes FakeOuterCompositeSerialize mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Consumes FakeOuterNumberSerialize mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Consumes FakeOuterStringSerialize mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestBodyWithFileSchema MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestBodyWithQueryParams MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestClientModel MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestEndpointParameters MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestEnumParameters MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestInlineAdditionalProperties MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestJsonFormData MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestClassname MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.FakeClassnameTags123

Consumes AddPet MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Consumes AddPet MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Pet

Consumes UpdatePet MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Consumes UpdatePet MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Pet

Consumes UpdatePetWithForm MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

Instance details Defined in OpenAPIPetstore.API.Pet

Consumes UploadFile MimeMultipartFormData Source #

    multipart/form-data

Instance details Defined in OpenAPIPetstore.API.Pet

Consumes UploadFileWithRequiredFile MimeMultipartFormData Source #

    multipart/form-data

Instance details Defined in OpenAPIPetstore.API.Pet

MimeType mtype => Consumes PlaceOrder mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.Store

MimeType mtype => Consumes CreateUser mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.User

MimeType mtype => Consumes CreateUsersWithArrayInput mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.User

MimeType mtype => Consumes CreateUsersWithListInput mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.User

MimeType mtype => Consumes UpdateUser mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.User

# Produces Class

class MimeType mtype => Produces req mtype Source #

#### Instances

Instances details

Produces Op123testSpecialTags MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.AnotherFake
Produces CreateXmlItem MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Produces FakeOuterBooleanSerialize mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Produces FakeOuterCompositeSerialize mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Produces FakeOuterNumberSerialize mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.Fake

MimeType mtype => Produces FakeOuterStringSerialize mtype Source #

    */*

Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestBodyWithFileSchema MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestBodyWithQueryParams MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake

Produces TestClientModel MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestEndpointParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestEnumParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestGroupParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestInlineAdditionalProperties MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestJsonFormData MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestQueryParameterCollectionFormat MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake

Produces TestClassname MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.FakeClassnameTags123
Produces AddPet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces DeletePet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet

Produces FindPetsByStatus MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Produces FindPetsByStatus MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Pet

Produces FindPetsByTags MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Produces FindPetsByTags MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Pet

Produces GetPetById MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Produces GetPetById MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Pet
Produces UpdatePet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces UpdatePetWithForm MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet

Produces UploadFile MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Produces UploadFileWithRequiredFile MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet
Produces DeleteOrder MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Store

Produces GetInventory MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Store

Produces GetOrderById MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Store

Produces GetOrderById MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Store

Produces PlaceOrder MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Store

Produces PlaceOrder MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Store
Produces CreateUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces CreateUsersWithArrayInput MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces CreateUsersWithListInput MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces DeleteUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User

Produces GetUserByName MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.User

Produces GetUserByName MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.User

Produces LoginUser MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.User

Produces LoginUser MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.User
Produces LogoutUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces UpdateUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User

# Default Mime Types

data MimeJSON Source #

Constructors

MimeJSON |

#### Instances

Instances details

MimeType MimeJSON Source #

    application/json; charset=utf-8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeJSON -> [MediaType] Source # mimeType :: Proxy MimeJSON -> Maybe MediaType Source # mimeType' :: MimeJSON -> Maybe MediaType Source # mimeTypes' :: MimeJSON -> [MediaType] Source #

Consumes Op123testSpecialTags MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.AnotherFake

Consumes TestBodyWithFileSchema MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestBodyWithQueryParams MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestClientModel MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestInlineAdditionalProperties MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestClassname MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.FakeClassnameTags123

Consumes AddPet MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Consumes UpdatePet MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet
ToJSON a => MimeRender MimeJSON a Source # | `encode`
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeJSON -> a -> ByteString Source # mimeRender' :: MimeJSON -> a -> ByteString Source #

FromJSON a => MimeUnrender MimeJSON a Source #

    A.eitherDecode

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeJSON -> ByteString -> Either String a Source # mimeUnrender' :: MimeJSON -> ByteString -> Either String a Source #

Produces Op123testSpecialTags MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.AnotherFake

Produces TestClientModel MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Fake

Produces TestClassname MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.FakeClassnameTags123

Produces FindPetsByStatus MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Produces FindPetsByTags MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Produces GetPetById MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Produces UploadFile MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Produces UploadFileWithRequiredFile MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Pet

Produces GetInventory MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Store

Produces GetOrderById MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Store

Produces PlaceOrder MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.Store

Produces GetUserByName MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.User

Produces LoginUser MimeJSON Source #

    application/json

Instance details Defined in OpenAPIPetstore.API.User

data MimeXML Source #

Constructors

MimeXML |

#### Instances

Instances details

MimeType MimeXML Source #

    application/xml; charset=utf-8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXML -> [MediaType] Source # mimeType :: Proxy MimeXML -> Maybe MediaType Source # mimeType' :: MimeXML -> Maybe MediaType Source # mimeTypes' :: MimeXML -> [MediaType] Source #

Consumes CreateXmlItem MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes AddPet MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Pet

Consumes UpdatePet MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Pet

Produces FindPetsByStatus MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Pet

Produces FindPetsByTags MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Pet

Produces GetPetById MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Pet

Produces GetOrderById MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Store

Produces PlaceOrder MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.Store

Produces GetUserByName MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.User

Produces LoginUser MimeXML Source #

    application/xml

Instance details Defined in OpenAPIPetstore.API.User

data MimePlainText Source #

Constructors

MimePlainText |

#### Instances

Instances details

MimeType MimePlainText Source #

    text/plain; charset=utf-8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimePlainText -> [MediaType] Source # mimeType :: Proxy MimePlainText -> Maybe MediaType Source # mimeType' :: MimePlainText -> Maybe MediaType Source # mimeTypes' :: MimePlainText -> [MediaType] Source #

MimeRender MimePlainText ByteString Source #

    P.id

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> ByteString -> ByteString Source # mimeRender' :: MimePlainText -> ByteString -> ByteString Source #

MimeRender MimePlainText Text Source #

    BL.fromStrict . T.encodeUtf8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> Text -> ByteString Source # mimeRender' :: MimePlainText -> Text -> ByteString Source #

MimeRender MimePlainText String Source #

    BCL.pack

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> String -> ByteString Source # mimeRender' :: MimePlainText -> String -> ByteString Source #

MimeUnrender MimePlainText ByteString Source #

    P.Right . P.id

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String ByteString Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String ByteString Source #

MimeUnrender MimePlainText Text Source #

    P.left P.show . TL.decodeUtf8'

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String Text Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String Text Source #

MimeUnrender MimePlainText String Source #

    P.Right . BCL.unpack

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String String Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String String Source #

data MimeFormUrlEncoded Source #

Constructors

MimeFormUrlEncoded |

#### Instances

Instances details

MimeType MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeFormUrlEncoded -> [MediaType] Source # mimeType :: Proxy MimeFormUrlEncoded -> Maybe MediaType Source # mimeType' :: MimeFormUrlEncoded -> Maybe MediaType Source # mimeTypes' :: MimeFormUrlEncoded -> [MediaType] Source #

Consumes TestEndpointParameters MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestEnumParameters MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes TestJsonFormData MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

Instance details Defined in OpenAPIPetstore.API.Fake

Consumes UpdatePetWithForm MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

Instance details Defined in OpenAPIPetstore.API.Pet

ToForm a => MimeRender MimeFormUrlEncoded a Source #

    WH.urlEncodeAsForm

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeFormUrlEncoded -> a -> ByteString Source # mimeRender' :: MimeFormUrlEncoded -> a -> ByteString Source #

FromForm a => MimeUnrender MimeFormUrlEncoded a Source #

    P.left T.unpack . WH.urlDecodeAsForm

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeFormUrlEncoded -> ByteString -> Either String a Source # mimeUnrender' :: MimeFormUrlEncoded -> ByteString -> Either String a Source #

data MimeMultipartFormData Source #

Constructors

MimeMultipartFormData |

#### Instances

Instances details

MimeType MimeMultipartFormData Source #

    multipart/form-data

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeMultipartFormData -> [MediaType] Source # mimeType :: Proxy MimeMultipartFormData -> Maybe MediaType Source # mimeType' :: MimeMultipartFormData -> Maybe MediaType Source # mimeTypes' :: MimeMultipartFormData -> [MediaType] Source #

Consumes UploadFile MimeMultipartFormData Source #

    multipart/form-data

Instance details Defined in OpenAPIPetstore.API.Pet

Consumes UploadFileWithRequiredFile MimeMultipartFormData Source #

    multipart/form-data

Instance details Defined in OpenAPIPetstore.API.Pet
MimeRender MimeMultipartFormData ByteString Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> ByteString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> ByteString -> ByteString Source #
MimeRender MimeMultipartFormData Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> Binary -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Binary -> ByteString Source #
MimeRender MimeMultipartFormData ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> ByteArray -> ByteString Source # mimeRender' :: MimeMultipartFormData -> ByteArray -> ByteString Source #
MimeRender MimeMultipartFormData Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> Date -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Date -> ByteString Source #
MimeRender MimeMultipartFormData DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> DateTime -> ByteString Source # mimeRender' :: MimeMultipartFormData -> DateTime -> ByteString Source #
MimeRender MimeMultipartFormData E'ArrayEnum Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'ArrayEnum -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'ArrayEnum -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumFormString Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumFormString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumFormString -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumFormStringArray Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumFormStringArray -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumFormStringArray -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumInteger Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumInteger -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumInteger -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumNumber Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumNumber -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumNumber -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumQueryInteger Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumQueryInteger -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumQueryInteger -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumString Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumString -> ByteString Source #
MimeRender MimeMultipartFormData E'Inner Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Inner -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Inner -> ByteString Source #
MimeRender MimeMultipartFormData E'JustSymbol Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'JustSymbol -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'JustSymbol -> ByteString Source #
MimeRender MimeMultipartFormData E'Kind Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Kind -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Kind -> ByteString Source #
MimeRender MimeMultipartFormData E'Status Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Status -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Status -> ByteString Source #
MimeRender MimeMultipartFormData E'Status2 Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Status2 -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Status2 -> ByteString Source #
MimeRender MimeMultipartFormData EnumClass Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> EnumClass -> ByteString Source # mimeRender' :: MimeMultipartFormData -> EnumClass -> ByteString Source #
MimeRender MimeMultipartFormData OuterEnum Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> OuterEnum -> ByteString Source # mimeRender' :: MimeMultipartFormData -> OuterEnum -> ByteString Source #
MimeRender MimeMultipartFormData Text Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Text -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Text -> ByteString Source #
MimeRender MimeMultipartFormData String Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> String -> ByteString Source # mimeRender' :: MimeMultipartFormData -> String -> ByteString Source #
MimeRender MimeMultipartFormData Integer Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Integer -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Integer -> ByteString Source #
MimeRender MimeMultipartFormData Bool Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Bool -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Bool -> ByteString Source #
MimeRender MimeMultipartFormData Char Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Char -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Char -> ByteString Source #
MimeRender MimeMultipartFormData Double Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Double -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Double -> ByteString Source #
MimeRender MimeMultipartFormData Float Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Float -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Float -> ByteString Source #
MimeRender MimeMultipartFormData Int Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Int -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Int -> ByteString Source #

data MimeOctetStream Source #

Constructors

MimeOctetStream |

#### Instances

Instances details

MimeType MimeOctetStream Source #

    application/octet-stream

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeOctetStream -> [MediaType] Source # mimeType :: Proxy MimeOctetStream -> Maybe MediaType Source # mimeType' :: MimeOctetStream -> Maybe MediaType Source # mimeTypes' :: MimeOctetStream -> [MediaType] Source #

MimeRender MimeOctetStream ByteString Source #

    P.id

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> ByteString -> ByteString Source # mimeRender' :: MimeOctetStream -> ByteString -> ByteString Source #

MimeRender MimeOctetStream Text Source #

    BL.fromStrict . T.encodeUtf8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> Text -> ByteString Source # mimeRender' :: MimeOctetStream -> Text -> ByteString Source #

MimeRender MimeOctetStream String Source #

    BCL.pack

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> String -> ByteString Source # mimeRender' :: MimeOctetStream -> String -> ByteString Source #

MimeUnrender MimeOctetStream ByteString Source #

    P.Right . P.id

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String ByteString Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String ByteString Source #

MimeUnrender MimeOctetStream Text Source #

    P.left P.show . T.decodeUtf8' . BL.toStrict

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String Text Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String Text Source #

MimeUnrender MimeOctetStream String Source #

    P.Right . BCL.unpack

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String String Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String String Source #

data MimeNoContent Source #

Constructors

MimeNoContent |

#### Instances

Instances details

MimeType MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeNoContent -> [MediaType] Source # mimeType :: Proxy MimeNoContent -> Maybe MediaType Source # mimeType' :: MimeNoContent -> Maybe MediaType Source # mimeTypes' :: MimeNoContent -> [MediaType] Source #

MimeRender MimeNoContent NoContent Source #

    P.Right . P.const NoContent

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source #

MimeUnrender MimeNoContent NoContent Source #

    P.Right . P.const NoContent

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent Source #
Produces CreateXmlItem MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestBodyWithFileSchema MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestBodyWithQueryParams MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestEndpointParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestEnumParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestGroupParameters MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestInlineAdditionalProperties MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestJsonFormData MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces TestQueryParameterCollectionFormat MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Fake
Produces AddPet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces DeletePet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces UpdatePet MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces UpdatePetWithForm MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Pet
Produces DeleteOrder MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.Store
Produces CreateUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces CreateUsersWithArrayInput MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces CreateUsersWithListInput MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces DeleteUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces LogoutUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User
Produces UpdateUser MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.API.User

data MimeAny Source #

Constructors

MimeAny |

#### Instances

Instances details

MimeType MimeAny Source #

    "*/*"

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeAny -> [MediaType] Source # mimeType :: Proxy MimeAny -> Maybe MediaType Source # mimeType' :: MimeAny -> Maybe MediaType Source # mimeTypes' :: MimeAny -> [MediaType] Source #

data NoContent Source #

A type for responses without content-body.

Constructors

NoContent |

#### Instances

Instances details

Show NoContent Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods showsPrec :: Int -> NoContent -> ShowS # show :: NoContent -> String # showList :: [NoContent] -> ShowS #
Eq NoContent Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods (==) :: NoContent -> NoContent -> Bool # (/=) :: NoContent -> NoContent -> Bool #

MimeRender MimeNoContent NoContent Source #

    P.Right . P.const NoContent

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source #

MimeUnrender MimeNoContent NoContent Source #

    P.Right . P.const NoContent

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent Source #

# MimeType Class

class Typeable mtype => MimeType mtype where Source #

Minimal complete definition

mimeType | mimeTypes

Methods

mimeTypes :: Proxy mtype -> [MediaType] Source #

mimeType :: Proxy mtype -> Maybe MediaType Source #

mimeType' :: mtype -> Maybe MediaType Source #

mimeTypes' :: mtype -> [MediaType] Source #

#### Instances

Instances details

MimeType MimeAny Source #

    "*/*"

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeAny -> [MediaType] Source # mimeType :: Proxy MimeAny -> Maybe MediaType Source # mimeType' :: MimeAny -> Maybe MediaType Source # mimeTypes' :: MimeAny -> [MediaType] Source #

MimeType MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeFormUrlEncoded -> [MediaType] Source # mimeType :: Proxy MimeFormUrlEncoded -> Maybe MediaType Source # mimeType' :: MimeFormUrlEncoded -> Maybe MediaType Source # mimeTypes' :: MimeFormUrlEncoded -> [MediaType] Source #

MimeType MimeJSON Source #

    application/json; charset=utf-8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeJSON -> [MediaType] Source # mimeType :: Proxy MimeJSON -> Maybe MediaType Source # mimeType' :: MimeJSON -> Maybe MediaType Source # mimeTypes' :: MimeJSON -> [MediaType] Source #

MimeType MimeMultipartFormData Source #

    multipart/form-data

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeMultipartFormData -> [MediaType] Source # mimeType :: Proxy MimeMultipartFormData -> Maybe MediaType Source # mimeType' :: MimeMultipartFormData -> Maybe MediaType Source # mimeTypes' :: MimeMultipartFormData -> [MediaType] Source #
MimeType MimeNoContent Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeNoContent -> [MediaType] Source # mimeType :: Proxy MimeNoContent -> Maybe MediaType Source # mimeType' :: MimeNoContent -> Maybe MediaType Source # mimeTypes' :: MimeNoContent -> [MediaType] Source #

MimeType MimeOctetStream Source #

    application/octet-stream

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeOctetStream -> [MediaType] Source # mimeType :: Proxy MimeOctetStream -> Maybe MediaType Source # mimeType' :: MimeOctetStream -> Maybe MediaType Source # mimeTypes' :: MimeOctetStream -> [MediaType] Source #

MimeType MimePlainText Source #

    text/plain; charset=utf-8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimePlainText -> [MediaType] Source # mimeType :: Proxy MimePlainText -> Maybe MediaType Source # mimeType' :: MimePlainText -> Maybe MediaType Source # mimeTypes' :: MimePlainText -> [MediaType] Source #

MimeType MimeTextXml Source #

    text/xml

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextXml -> [MediaType] Source # mimeType :: Proxy MimeTextXml -> Maybe MediaType Source # mimeType' :: MimeTextXml -> Maybe MediaType Source # mimeTypes' :: MimeTextXml -> [MediaType] Source #

MimeType MimeTextXmlCharsetutf16 Source #

    text/xml; charset=utf-16

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextXmlCharsetutf16 -> [MediaType] Source # mimeType :: Proxy MimeTextXmlCharsetutf16 -> Maybe MediaType Source # mimeType' :: MimeTextXmlCharsetutf16 -> Maybe MediaType Source # mimeTypes' :: MimeTextXmlCharsetutf16 -> [MediaType] Source #

MimeType MimeTextXmlCharsetutf8 Source #

    text/xml; charset=utf-8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextXmlCharsetutf8 -> [MediaType] Source # mimeType :: Proxy MimeTextXmlCharsetutf8 -> Maybe MediaType Source # mimeType' :: MimeTextXmlCharsetutf8 -> Maybe MediaType Source # mimeTypes' :: MimeTextXmlCharsetutf8 -> [MediaType] Source #

MimeType MimeXML Source #

    application/xml; charset=utf-8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXML -> [MediaType] Source # mimeType :: Proxy MimeXML -> Maybe MediaType Source # mimeType' :: MimeXML -> Maybe MediaType Source # mimeTypes' :: MimeXML -> [MediaType] Source #

MimeType MimeXmlCharsetutf16 Source #

    application/xml; charset=utf-16

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXmlCharsetutf16 -> [MediaType] Source # mimeType :: Proxy MimeXmlCharsetutf16 -> Maybe MediaType Source # mimeType' :: MimeXmlCharsetutf16 -> Maybe MediaType Source # mimeTypes' :: MimeXmlCharsetutf16 -> [MediaType] Source #

MimeType MimeXmlCharsetutf8 Source #

    application/xml; charset=utf-8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXmlCharsetutf8 -> [MediaType] Source # mimeType :: Proxy MimeXmlCharsetutf8 -> Maybe MediaType Source # mimeType' :: MimeXmlCharsetutf8 -> Maybe MediaType Source # mimeTypes' :: MimeXmlCharsetutf8 -> [MediaType] Source #

# MimeRender Class

class MimeType mtype => MimeRender mtype x where Source #

Minimal complete definition

mimeRender

Methods

mimeRender :: Proxy mtype -> x -> ByteString Source #

mimeRender' :: mtype -> x -> ByteString Source #

#### Instances

Instances details

ToForm a => MimeRender MimeFormUrlEncoded a Source #

    WH.urlEncodeAsForm

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeFormUrlEncoded -> a -> ByteString Source # mimeRender' :: MimeFormUrlEncoded -> a -> ByteString Source #
ToJSON a => MimeRender MimeJSON a Source # | `encode`
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeJSON -> a -> ByteString Source # mimeRender' :: MimeJSON -> a -> ByteString Source #
MimeRender MimeMultipartFormData ByteString Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> ByteString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> ByteString -> ByteString Source #
MimeRender MimeMultipartFormData Binary Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> Binary -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Binary -> ByteString Source #
MimeRender MimeMultipartFormData ByteArray Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> ByteArray -> ByteString Source # mimeRender' :: MimeMultipartFormData -> ByteArray -> ByteString Source #
MimeRender MimeMultipartFormData Date Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> Date -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Date -> ByteString Source #
MimeRender MimeMultipartFormData DateTime Source # |
Instance details Defined in OpenAPIPetstore.Core Methods mimeRender :: Proxy MimeMultipartFormData -> DateTime -> ByteString Source # mimeRender' :: MimeMultipartFormData -> DateTime -> ByteString Source #
MimeRender MimeMultipartFormData E'ArrayEnum Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'ArrayEnum -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'ArrayEnum -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumFormString Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumFormString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumFormString -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumFormStringArray Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumFormStringArray -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumFormStringArray -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumInteger Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumInteger -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumInteger -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumNumber Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumNumber -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumNumber -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumQueryInteger Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumQueryInteger -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumQueryInteger -> ByteString Source #
MimeRender MimeMultipartFormData E'EnumString Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'EnumString -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'EnumString -> ByteString Source #
MimeRender MimeMultipartFormData E'Inner Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Inner -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Inner -> ByteString Source #
MimeRender MimeMultipartFormData E'JustSymbol Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'JustSymbol -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'JustSymbol -> ByteString Source #
MimeRender MimeMultipartFormData E'Kind Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Kind -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Kind -> ByteString Source #
MimeRender MimeMultipartFormData E'Status Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Status -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Status -> ByteString Source #
MimeRender MimeMultipartFormData E'Status2 Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> E'Status2 -> ByteString Source # mimeRender' :: MimeMultipartFormData -> E'Status2 -> ByteString Source #
MimeRender MimeMultipartFormData EnumClass Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> EnumClass -> ByteString Source # mimeRender' :: MimeMultipartFormData -> EnumClass -> ByteString Source #
MimeRender MimeMultipartFormData OuterEnum Source # |
Instance details Defined in OpenAPIPetstore.Model Methods mimeRender :: Proxy MimeMultipartFormData -> OuterEnum -> ByteString Source # mimeRender' :: MimeMultipartFormData -> OuterEnum -> ByteString Source #
MimeRender MimeMultipartFormData Text Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Text -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Text -> ByteString Source #
MimeRender MimeMultipartFormData String Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> String -> ByteString Source # mimeRender' :: MimeMultipartFormData -> String -> ByteString Source #
MimeRender MimeMultipartFormData Integer Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Integer -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Integer -> ByteString Source #
MimeRender MimeMultipartFormData Bool Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Bool -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Bool -> ByteString Source #
MimeRender MimeMultipartFormData Char Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Char -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Char -> ByteString Source #
MimeRender MimeMultipartFormData Double Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Double -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Double -> ByteString Source #
MimeRender MimeMultipartFormData Float Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Float -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Float -> ByteString Source #
MimeRender MimeMultipartFormData Int Source # |
Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeMultipartFormData -> Int -> ByteString Source # mimeRender' :: MimeMultipartFormData -> Int -> ByteString Source #

MimeRender MimeNoContent NoContent Source #

    P.Right . P.const NoContent

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeNoContent -> NoContent -> ByteString Source # mimeRender' :: MimeNoContent -> NoContent -> ByteString Source #

MimeRender MimeOctetStream ByteString Source #

    P.id

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> ByteString -> ByteString Source # mimeRender' :: MimeOctetStream -> ByteString -> ByteString Source #

MimeRender MimeOctetStream Text Source #

    BL.fromStrict . T.encodeUtf8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> Text -> ByteString Source # mimeRender' :: MimeOctetStream -> Text -> ByteString Source #

MimeRender MimeOctetStream String Source #

    BCL.pack

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimeOctetStream -> String -> ByteString Source # mimeRender' :: MimeOctetStream -> String -> ByteString Source #

MimeRender MimePlainText ByteString Source #

    P.id

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> ByteString -> ByteString Source # mimeRender' :: MimePlainText -> ByteString -> ByteString Source #

MimeRender MimePlainText Text Source #

    BL.fromStrict . T.encodeUtf8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> Text -> ByteString Source # mimeRender' :: MimePlainText -> Text -> ByteString Source #

MimeRender MimePlainText String Source #

    BCL.pack

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeRender :: Proxy MimePlainText -> String -> ByteString Source # mimeRender' :: MimePlainText -> String -> ByteString Source #

mimeRenderDefaultMultipartFormData :: ToHttpApiData a => a -> ByteString Source #

# MimeUnrender Class

class MimeType mtype => MimeUnrender mtype o where Source #

Minimal complete definition

mimeUnrender

Methods

mimeUnrender :: Proxy mtype -> ByteString -> Either String o Source #

mimeUnrender' :: mtype -> ByteString -> Either String o Source #

#### Instances

Instances details

FromForm a => MimeUnrender MimeFormUrlEncoded a Source #

    P.left T.unpack . WH.urlDecodeAsForm

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeFormUrlEncoded -> ByteString -> Either String a Source # mimeUnrender' :: MimeFormUrlEncoded -> ByteString -> Either String a Source #

FromJSON a => MimeUnrender MimeJSON a Source #

    A.eitherDecode

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeJSON -> ByteString -> Either String a Source # mimeUnrender' :: MimeJSON -> ByteString -> Either String a Source #

MimeUnrender MimeNoContent NoContent Source #

    P.Right . P.const NoContent

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeNoContent -> ByteString -> Either String NoContent Source # mimeUnrender' :: MimeNoContent -> ByteString -> Either String NoContent Source #

MimeUnrender MimeOctetStream ByteString Source #

    P.Right . P.id

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String ByteString Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String ByteString Source #

MimeUnrender MimeOctetStream Text Source #

    P.left P.show . T.decodeUtf8' . BL.toStrict

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String Text Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String Text Source #

MimeUnrender MimeOctetStream String Source #

    P.Right . BCL.unpack

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimeOctetStream -> ByteString -> Either String String Source # mimeUnrender' :: MimeOctetStream -> ByteString -> Either String String Source #

MimeUnrender MimePlainText ByteString Source #

    P.Right . P.id

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String ByteString Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String ByteString Source #

MimeUnrender MimePlainText Text Source #

    P.left P.show . TL.decodeUtf8'

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String Text Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String Text Source #

MimeUnrender MimePlainText String Source #

    P.Right . BCL.unpack

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeUnrender :: Proxy MimePlainText -> ByteString -> Either String String Source # mimeUnrender' :: MimePlainText -> ByteString -> Either String String Source #

# Custom Mime Types

## MimeXmlCharsetutf16

data MimeXmlCharsetutf16 Source #

Constructors

MimeXmlCharsetutf16 |

#### Instances

Instances details

MimeType MimeXmlCharsetutf16 Source #

    application/xml; charset=utf-16

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXmlCharsetutf16 -> [MediaType] Source # mimeType :: Proxy MimeXmlCharsetutf16 -> Maybe MediaType Source # mimeType' :: MimeXmlCharsetutf16 -> Maybe MediaType Source # mimeTypes' :: MimeXmlCharsetutf16 -> [MediaType] Source #

Consumes CreateXmlItem MimeXmlCharsetutf16 Source #

    application/xml; charset=utf-16

Instance details Defined in OpenAPIPetstore.API.Fake

## MimeXmlCharsetutf8

data MimeXmlCharsetutf8 Source #

Constructors

MimeXmlCharsetutf8 |

#### Instances

Instances details

MimeType MimeXmlCharsetutf8 Source #

    application/xml; charset=utf-8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeXmlCharsetutf8 -> [MediaType] Source # mimeType :: Proxy MimeXmlCharsetutf8 -> Maybe MediaType Source # mimeType' :: MimeXmlCharsetutf8 -> Maybe MediaType Source # mimeTypes' :: MimeXmlCharsetutf8 -> [MediaType] Source #

Consumes CreateXmlItem MimeXmlCharsetutf8 Source #

    application/xml; charset=utf-8

Instance details Defined in OpenAPIPetstore.API.Fake

## MimeTextXml

data MimeTextXml Source #

Constructors

MimeTextXml |

#### Instances

Instances details

MimeType MimeTextXml Source #

    text/xml

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextXml -> [MediaType] Source # mimeType :: Proxy MimeTextXml -> Maybe MediaType Source # mimeType' :: MimeTextXml -> Maybe MediaType Source # mimeTypes' :: MimeTextXml -> [MediaType] Source #

Consumes CreateXmlItem MimeTextXml Source #

    text/xml

Instance details Defined in OpenAPIPetstore.API.Fake

## MimeTextXmlCharsetutf16

data MimeTextXmlCharsetutf16 Source #

Constructors

MimeTextXmlCharsetutf16 |

#### Instances

Instances details

MimeType MimeTextXmlCharsetutf16 Source #

    text/xml; charset=utf-16

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextXmlCharsetutf16 -> [MediaType] Source # mimeType :: Proxy MimeTextXmlCharsetutf16 -> Maybe MediaType Source # mimeType' :: MimeTextXmlCharsetutf16 -> Maybe MediaType Source # mimeTypes' :: MimeTextXmlCharsetutf16 -> [MediaType] Source #

Consumes CreateXmlItem MimeTextXmlCharsetutf16 Source #

    text/xml; charset=utf-16

Instance details Defined in OpenAPIPetstore.API.Fake

## MimeTextXmlCharsetutf8

data MimeTextXmlCharsetutf8 Source #

Constructors

MimeTextXmlCharsetutf8 |

#### Instances

Instances details

MimeType MimeTextXmlCharsetutf8 Source #

    text/xml; charset=utf-8

Instance details Defined in OpenAPIPetstore.MimeTypes Methods mimeTypes :: Proxy MimeTextXmlCharsetutf8 -> [MediaType] Source # mimeType :: Proxy MimeTextXmlCharsetutf8 -> Maybe MediaType Source # mimeType' :: MimeTextXmlCharsetutf8 -> Maybe MediaType Source # mimeTypes' :: MimeTextXmlCharsetutf8 -> [MediaType] Source #

Consumes CreateXmlItem MimeTextXmlCharsetutf8 Source #

    text/xml; charset=utf-8

Instance details Defined in OpenAPIPetstore.API.Fake