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

Safe Haskell | None
Language | Haskell2010

SwaggerPetstore.API.Fake

Contents

- Operations
  - Fake
    - fakeOuterBooleanSerialize
    - fakeOuterCompositeSerialize
    - fakeOuterNumberSerialize
    - fakeOuterStringSerialize
    - testClientModel
    - testEndpointParameters
    - testEnumParameters
    - testInlineAdditionalProperties
    - testJsonFormData

Description

Synopsis

- fakeOuterBooleanSerialize :: Consumes FakeOuterBooleanSerialize contentType => ContentType contentType -> Accept accept -> SwaggerPetstoreRequest FakeOuterBooleanSerialize contentType OuterBoolean accept
- data FakeOuterBooleanSerialize
- fakeOuterCompositeSerialize :: Consumes FakeOuterCompositeSerialize contentType => ContentType contentType -> Accept accept -> SwaggerPetstoreRequest FakeOuterCompositeSerialize contentType OuterComposite accept
- data FakeOuterCompositeSerialize
- fakeOuterNumberSerialize :: Consumes FakeOuterNumberSerialize contentType => ContentType contentType -> Accept accept -> SwaggerPetstoreRequest FakeOuterNumberSerialize contentType OuterNumber accept
- data FakeOuterNumberSerialize
- fakeOuterStringSerialize :: Consumes FakeOuterStringSerialize contentType => ContentType contentType -> Accept accept -> SwaggerPetstoreRequest FakeOuterStringSerialize contentType OuterString accept
- data FakeOuterStringSerialize
- testClientModel :: (Consumes TestClientModel MimeJSON, MimeRender MimeJSON Client) => Client -> SwaggerPetstoreRequest TestClientModel MimeJSON Client MimeJSON
- data TestClientModel
- testEndpointParameters :: Consumes TestEndpointParameters contentType => ContentType contentType -> Accept accept -> Number -> ParamDouble -> PatternWithoutDelimiter -> Byte -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept
- data TestEndpointParameters
- testEnumParameters :: Consumes TestEnumParameters contentType => ContentType contentType -> Accept accept -> SwaggerPetstoreRequest TestEnumParameters contentType res accept
- data TestEnumParameters
- testInlineAdditionalProperties :: (Consumes TestInlineAdditionalProperties MimeJSON, MimeRender MimeJSON Value) => Value -> SwaggerPetstoreRequest TestInlineAdditionalProperties MimeJSON NoContent MimeNoContent
- data TestInlineAdditionalProperties
- testJsonFormData :: Consumes TestJsonFormData MimeJSON => Param -> Param2 -> SwaggerPetstoreRequest TestJsonFormData MimeJSON NoContent MimeNoContent
- data TestJsonFormData

# Operations

## Fake

### fakeOuterBooleanSerialize

fakeOuterBooleanSerialize Source #

Arguments

:: Consumes FakeOuterBooleanSerialize contentType |
=> ContentType contentType | request content-type (`MimeType`)
-> Accept accept | request accept (`MimeType`)
-> SwaggerPetstoreRequest FakeOuterBooleanSerialize contentType OuterBoolean accept |

    POST /fake/outer/boolean

Test serialization of outer boolean types

data FakeOuterBooleanSerialize Source #

Instances

HasBodyParam FakeOuterBooleanSerialize OuterBoolean Source # | Body Param "body" - Input boolean as post body
Methods setBodyParam :: (Consumes FakeOuterBooleanSerialize contentType, MimeRender contentType OuterBoolean) => SwaggerPetstoreRequest FakeOuterBooleanSerialize contentType res accept -> OuterBoolean -> SwaggerPetstoreRequest FakeOuterBooleanSerialize contentType res accept Source #

### fakeOuterCompositeSerialize

fakeOuterCompositeSerialize Source #

Arguments

:: Consumes FakeOuterCompositeSerialize contentType |
=> ContentType contentType | request content-type (`MimeType`)
-> Accept accept | request accept (`MimeType`)
-> SwaggerPetstoreRequest FakeOuterCompositeSerialize contentType OuterComposite accept |

    POST /fake/outer/composite

Test serialization of object with outer number type

data FakeOuterCompositeSerialize Source #

Instances

HasBodyParam FakeOuterCompositeSerialize OuterComposite Source # | Body Param "body" - Input composite as post body
Methods setBodyParam :: (Consumes FakeOuterCompositeSerialize contentType, MimeRender contentType OuterComposite) => SwaggerPetstoreRequest FakeOuterCompositeSerialize contentType res accept -> OuterComposite -> SwaggerPetstoreRequest FakeOuterCompositeSerialize contentType res accept Source #

### fakeOuterNumberSerialize

fakeOuterNumberSerialize Source #

Arguments

:: Consumes FakeOuterNumberSerialize contentType |
=> ContentType contentType | request content-type (`MimeType`)
-> Accept accept | request accept (`MimeType`)
-> SwaggerPetstoreRequest FakeOuterNumberSerialize contentType OuterNumber accept |

    POST /fake/outer/number

Test serialization of outer number types

data FakeOuterNumberSerialize Source #

Instances

HasBodyParam FakeOuterNumberSerialize OuterNumber Source # | Body Param "body" - Input number as post body
Methods setBodyParam :: (Consumes FakeOuterNumberSerialize contentType, MimeRender contentType OuterNumber) => SwaggerPetstoreRequest FakeOuterNumberSerialize contentType res accept -> OuterNumber -> SwaggerPetstoreRequest FakeOuterNumberSerialize contentType res accept Source #

### fakeOuterStringSerialize

fakeOuterStringSerialize Source #

Arguments

:: Consumes FakeOuterStringSerialize contentType |
=> ContentType contentType | request content-type (`MimeType`)
-> Accept accept | request accept (`MimeType`)
-> SwaggerPetstoreRequest FakeOuterStringSerialize contentType OuterString accept |

    POST /fake/outer/string

Test serialization of outer string types

data FakeOuterStringSerialize Source #

Instances

HasBodyParam FakeOuterStringSerialize OuterString Source # | Body Param "body" - Input string as post body
Methods setBodyParam :: (Consumes FakeOuterStringSerialize contentType, MimeRender contentType OuterString) => SwaggerPetstoreRequest FakeOuterStringSerialize contentType res accept -> OuterString -> SwaggerPetstoreRequest FakeOuterStringSerialize contentType res accept Source #

### testClientModel

testClientModel Source #

Arguments

:: (Consumes TestClientModel MimeJSON, MimeRender MimeJSON Client) |
=> Client | "body" - client model
-> SwaggerPetstoreRequest TestClientModel MimeJSON Client MimeJSON |

    PATCH /fake

To test "client" model

To test "client" model

data TestClientModel Source #

Instances

Produces TestClientModel MimeJSON Source # |
    application/json
Consumes TestClientModel MimeJSON Source # |
    application/json
HasBodyParam TestClientModel Client Source # | Body Param "body" - client model
Methods setBodyParam :: (Consumes TestClientModel contentType, MimeRender contentType Client) => SwaggerPetstoreRequest TestClientModel contentType res accept -> Client -> SwaggerPetstoreRequest TestClientModel contentType res accept Source #

### testEndpointParameters

testEndpointParameters Source #

Arguments

:: Consumes TestEndpointParameters contentType |
=> ContentType contentType | request content-type (`MimeType`)
-> Accept accept | request accept (`MimeType`)
-> Number | "number" - None
-> ParamDouble | "double" - None
-> PatternWithoutDelimiter | "patternWithoutDelimiter" - None
-> Byte | "byte" - None
-> SwaggerPetstoreRequest TestEndpointParameters contentType res accept |

    POST /fake

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트

AuthMethod: `AuthBasicHttpBasicTest`

Note: Has `Produces` instances, but no response schema

data TestEndpointParameters Source #

Instances

Produces TestEndpointParameters MimeXmlCharsetutf8 Source # |
    application/xml; charset=utf-8
Produces TestEndpointParameters MimeJsonCharsetutf8 Source # |
    application/json; charset=utf-8
Consumes TestEndpointParameters MimeXmlCharsetutf8 Source # |
    application/xml; charset=utf-8
Consumes TestEndpointParameters MimeJsonCharsetutf8 Source # |
    application/json; charset=utf-8
HasOptionalParam TestEndpointParameters Password Source # | Optional Param "password" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Password -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Password -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamString Source # | Optional Param "string" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamString -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamString -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamInteger Source # | Optional Param "integer" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamInteger -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamInteger -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamFloat Source # | Optional Param "float" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamFloat -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamFloat -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamDateTime Source # | Optional Param "dateTime" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamDateTime -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamDateTime -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamDate Source # | Optional Param "date" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamDate -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamDate -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamBinary Source # | Optional Param "binary" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamBinary -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> ParamBinary -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Int64 Source # | Optional Param "int64" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Int64 -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Int64 -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Int32 Source # | Optional Param "int32" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Int32 -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Int32 -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Callback Source # | Optional Param "callback" - None
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Callback -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEndpointParameters contentType res accept -> Callback -> SwaggerPetstoreRequest TestEndpointParameters contentType res accept Source #

### testEnumParameters

testEnumParameters Source #

Arguments

:: Consumes TestEnumParameters contentType |
=> ContentType contentType | request content-type (`MimeType`)
-> Accept accept | request accept (`MimeType`)
-> SwaggerPetstoreRequest TestEnumParameters contentType res accept |

    GET /fake

To test enum parameters

To test enum parameters

Note: Has `Produces` instances, but no response schema

data TestEnumParameters Source #

Instances

MimeType mtype => Produces TestEnumParameters mtype Source # |
    */*
MimeType mtype => Consumes TestEnumParameters mtype Source # |
    */*
HasOptionalParam TestEnumParameters EnumQueryStringArray Source # | Optional Param "enum_query_string_array" - Query parameter enum test (string array)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryString Source # | Optional Param "enum_query_string" - Query parameter enum test (string)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryInteger Source # | Optional Param "enum_query_integer" - Query parameter enum test (double)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryInteger -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryInteger -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumQueryDouble Source # | Optional Param "enum_query_double" - Query parameter enum test (double)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryDouble -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumQueryDouble -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumHeaderStringArray Source # | Optional Param "enum_header_string_array" - Header parameter enum test (string array)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumHeaderString Source # | Optional Param "enum_header_string" - Header parameter enum test (string)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumHeaderString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumFormStringArray Source # | Optional Param "enum_form_string_array" - Form parameter enum test (string array)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumFormStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumFormStringArray -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #
HasOptionalParam TestEnumParameters EnumFormString Source # | Optional Param "enum_form_string" - Form parameter enum test (string)
Methods applyOptionalParam :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumFormString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source # (-&-) :: SwaggerPetstoreRequest TestEnumParameters contentType res accept -> EnumFormString -> SwaggerPetstoreRequest TestEnumParameters contentType res accept Source #

### testInlineAdditionalProperties

testInlineAdditionalProperties Source #

Arguments

:: (Consumes TestInlineAdditionalProperties MimeJSON, MimeRender MimeJSON Value) |
=> Value | "param" - request body
-> SwaggerPetstoreRequest TestInlineAdditionalProperties MimeJSON NoContent MimeNoContent |

    POST /fake/inline-additionalProperties

test inline additionalProperties

data TestInlineAdditionalProperties Source #

Instances

Consumes TestInlineAdditionalProperties MimeJSON Source # |
    application/json
HasBodyParam TestInlineAdditionalProperties Value Source # | Body Param "param" - request body
Methods setBodyParam :: (Consumes TestInlineAdditionalProperties contentType, MimeRender contentType Value) => SwaggerPetstoreRequest TestInlineAdditionalProperties contentType res accept -> Value -> SwaggerPetstoreRequest TestInlineAdditionalProperties contentType res accept Source #

### testJsonFormData

testJsonFormData Source #

Arguments

:: Consumes TestJsonFormData MimeJSON |
=> Param | "param" - field1
-> Param2 | "param2" - field2
-> SwaggerPetstoreRequest TestJsonFormData MimeJSON NoContent MimeNoContent |

    GET /fake/jsonFormData

test json serialization of form data

data TestJsonFormData Source #

Instances

Consumes TestJsonFormData MimeJSON Source # |
    application/json