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

Safe Haskell | None
Language | Haskell2010

OpenAPIPetstore.API.Fake

Contents

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

Description

Synopsis

- fakeOuterBooleanSerialize :: Consumes FakeOuterBooleanSerialize MimeJSON => Accept accept -> OpenAPIPetstoreRequest FakeOuterBooleanSerialize MimeJSON Bool accept
- data FakeOuterBooleanSerialize
- fakeOuterCompositeSerialize :: Consumes FakeOuterCompositeSerialize MimeJSON => Accept accept -> OpenAPIPetstoreRequest FakeOuterCompositeSerialize MimeJSON OuterComposite accept
- data FakeOuterCompositeSerialize
- fakeOuterNumberSerialize :: Consumes FakeOuterNumberSerialize MimeJSON => Accept accept -> OpenAPIPetstoreRequest FakeOuterNumberSerialize MimeJSON Double accept
- data FakeOuterNumberSerialize
- fakeOuterStringSerialize :: Consumes FakeOuterStringSerialize MimeJSON => Accept accept -> OpenAPIPetstoreRequest FakeOuterStringSerialize MimeJSON Text accept
- data FakeOuterStringSerialize
- testBodyWithFileSchema :: (Consumes TestBodyWithFileSchema MimeJSON, MimeRender MimeJSON FileSchemaTestClass) => FileSchemaTestClass -> OpenAPIPetstoreRequest TestBodyWithFileSchema MimeJSON NoContent MimeNoContent
- data TestBodyWithFileSchema
- testBodyWithQueryParams :: (Consumes TestBodyWithQueryParams MimeJSON, MimeRender MimeJSON User) => User -> Query -> OpenAPIPetstoreRequest TestBodyWithQueryParams MimeJSON NoContent MimeNoContent
- data TestBodyWithQueryParams
- testClientModel :: (Consumes TestClientModel MimeJSON, MimeRender MimeJSON Client) => Client -> OpenAPIPetstoreRequest TestClientModel MimeJSON Client MimeJSON
- data TestClientModel
- testEndpointParameters :: Consumes TestEndpointParameters MimeFormUrlEncoded => Number -> ParamDouble -> PatternWithoutDelimiter -> Byte -> OpenAPIPetstoreRequest TestEndpointParameters MimeFormUrlEncoded NoContent MimeNoContent
- data TestEndpointParameters
- testEnumParameters :: Consumes TestEnumParameters MimeFormUrlEncoded => OpenAPIPetstoreRequest TestEnumParameters MimeFormUrlEncoded NoContent MimeNoContent
- data TestEnumParameters
- testInlineAdditionalProperties :: (Consumes TestInlineAdditionalProperties MimeJSON, MimeRender MimeJSON RequestBody) => RequestBody -> OpenAPIPetstoreRequest TestInlineAdditionalProperties MimeJSON NoContent MimeNoContent
- data TestInlineAdditionalProperties
- testJsonFormData :: Consumes TestJsonFormData MimeFormUrlEncoded => Param -> Param2 -> OpenAPIPetstoreRequest TestJsonFormData MimeFormUrlEncoded NoContent MimeNoContent
- data TestJsonFormData

# Operations

## Fake

### fakeOuterBooleanSerialize

fakeOuterBooleanSerialize Source #

Arguments

:: Consumes FakeOuterBooleanSerialize MimeJSON |
=> Accept accept | request accept (`MimeType`)
-> OpenAPIPetstoreRequest FakeOuterBooleanSerialize MimeJSON Bool accept |

    POST /fake/outer/boolean

Test serialization of outer boolean types

data FakeOuterBooleanSerialize Source #

Instances

MimeType mtype => Produces FakeOuterBooleanSerialize mtype Source #

    */*

Consumes FakeOuterBooleanSerialize MimeJSON Source #

    application/json

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

### fakeOuterCompositeSerialize

fakeOuterCompositeSerialize Source #

Arguments

:: Consumes FakeOuterCompositeSerialize MimeJSON |
=> Accept accept | request accept (`MimeType`)
-> OpenAPIPetstoreRequest FakeOuterCompositeSerialize MimeJSON OuterComposite accept |

    POST /fake/outer/composite

Test serialization of object with outer number type

data FakeOuterCompositeSerialize Source #

Instances

MimeType mtype => Produces FakeOuterCompositeSerialize mtype Source #

    */*

Consumes FakeOuterCompositeSerialize MimeJSON Source #

    application/json

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

### fakeOuterNumberSerialize

fakeOuterNumberSerialize Source #

Arguments

:: Consumes FakeOuterNumberSerialize MimeJSON |
=> Accept accept | request accept (`MimeType`)
-> OpenAPIPetstoreRequest FakeOuterNumberSerialize MimeJSON Double accept |

    POST /fake/outer/number

Test serialization of outer number types

data FakeOuterNumberSerialize Source #

Instances

MimeType mtype => Produces FakeOuterNumberSerialize mtype Source #

    */*

Consumes FakeOuterNumberSerialize MimeJSON Source #

    application/json

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

### fakeOuterStringSerialize

fakeOuterStringSerialize Source #

Arguments

:: Consumes FakeOuterStringSerialize MimeJSON |
=> Accept accept | request accept (`MimeType`)
-> OpenAPIPetstoreRequest FakeOuterStringSerialize MimeJSON Text accept |

    POST /fake/outer/string

Test serialization of outer string types

data FakeOuterStringSerialize Source #

Instances

MimeType mtype => Produces FakeOuterStringSerialize mtype Source #

    */*

Consumes FakeOuterStringSerialize MimeJSON Source #

    application/json

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

### testBodyWithFileSchema

testBodyWithFileSchema Source #

Arguments

:: (Consumes TestBodyWithFileSchema MimeJSON, MimeRender MimeJSON FileSchemaTestClass) |
=> FileSchemaTestClass | "fileSchemaTestClass"
-> OpenAPIPetstoreRequest TestBodyWithFileSchema MimeJSON NoContent MimeNoContent |

    PUT /fake/body-with-file-schema

For this test, the body for this request much reference a schema named `File`.

data TestBodyWithFileSchema Source #

Instances

Produces TestBodyWithFileSchema MimeNoContent Source # |

Consumes TestBodyWithFileSchema MimeJSON Source #

    application/json

HasBodyParam TestBodyWithFileSchema FileSchemaTestClass Source # |
Methods setBodyParam :: (Consumes TestBodyWithFileSchema contentType, MimeRender contentType FileSchemaTestClass) => OpenAPIPetstoreRequest TestBodyWithFileSchema contentType res accept -> FileSchemaTestClass -> OpenAPIPetstoreRequest TestBodyWithFileSchema contentType res accept Source #

### testBodyWithQueryParams

testBodyWithQueryParams Source #

Arguments

:: (Consumes TestBodyWithQueryParams MimeJSON, MimeRender MimeJSON User) |
=> User | "user"
-> Query | "query"
-> OpenAPIPetstoreRequest TestBodyWithQueryParams MimeJSON NoContent MimeNoContent |

    PUT /fake/body-with-query-params

data TestBodyWithQueryParams Source #

Instances

Produces TestBodyWithQueryParams MimeNoContent Source # |

Consumes TestBodyWithQueryParams MimeJSON Source #

    application/json

HasBodyParam TestBodyWithQueryParams User Source # |
Methods setBodyParam :: (Consumes TestBodyWithQueryParams contentType, MimeRender contentType User) => OpenAPIPetstoreRequest TestBodyWithQueryParams contentType res accept -> User -> OpenAPIPetstoreRequest TestBodyWithQueryParams contentType res accept Source #

### testClientModel

testClientModel Source #

Arguments

:: (Consumes TestClientModel MimeJSON, MimeRender MimeJSON Client) |
=> Client | "client" - client model
-> OpenAPIPetstoreRequest 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 Client - client model
Methods setBodyParam :: (Consumes TestClientModel contentType, MimeRender contentType Client) => OpenAPIPetstoreRequest TestClientModel contentType res accept -> Client -> OpenAPIPetstoreRequest TestClientModel contentType res accept Source #

### testEndpointParameters

testEndpointParameters Source #

Arguments

:: Consumes TestEndpointParameters MimeFormUrlEncoded |
=> Number | "number" - None
-> ParamDouble | "double" - None
-> PatternWithoutDelimiter | "patternWithoutDelimiter" - None
-> Byte | "byte" - None
-> OpenAPIPetstoreRequest TestEndpointParameters MimeFormUrlEncoded NoContent MimeNoContent |

    POST /fake

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

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

AuthMethod: `AuthBasicHttpBasicTest`

data TestEndpointParameters Source #

Instances

Produces TestEndpointParameters MimeNoContent Source # |

Consumes TestEndpointParameters MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

HasOptionalParam TestEndpointParameters Password Source # | Optional Param "password" - None
Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Password -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Password -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamString Source # | Optional Param "string" - None
Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamString -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamString -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamInteger Source # | Optional Param "integer" - None
Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamInteger -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamInteger -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamFloat Source # | Optional Param "float" - None
Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamFloat -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamFloat -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamDateTime Source # | Optional Param "dateTime" - None
Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDateTime -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDateTime -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamDate Source # | Optional Param "date" - None
Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDate -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamDate -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters ParamBinary Source # | Optional Param "binary" - None
Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamBinary -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> ParamBinary -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Int64 Source # | Optional Param "int64" - None
Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int64 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int64 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Int32 Source # | Optional Param "int32" - None
Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int32 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Int32 -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #
HasOptionalParam TestEndpointParameters Callback Source # | Optional Param "callback" - None
Methods applyOptionalParam :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Callback -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest TestEndpointParameters contentType res accept -> Callback -> OpenAPIPetstoreRequest TestEndpointParameters contentType res accept Source #

### testEnumParameters

testEnumParameters :: Consumes TestEnumParameters MimeFormUrlEncoded => OpenAPIPetstoreRequest TestEnumParameters MimeFormUrlEncoded NoContent MimeNoContent Source #

    GET /fake

To test enum parameters

To test enum parameters

data TestEnumParameters Source #

Instances

Produces TestEnumParameters MimeNoContent Source # |

Consumes TestEnumParameters MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded

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

### testInlineAdditionalProperties

testInlineAdditionalProperties Source #

Arguments

:: (Consumes TestInlineAdditionalProperties MimeJSON, MimeRender MimeJSON RequestBody) |
=> RequestBody | "requestBody" - request body
-> OpenAPIPetstoreRequest TestInlineAdditionalProperties MimeJSON NoContent MimeNoContent |

    POST /fake/inline-additionalProperties

test inline additionalProperties

data TestInlineAdditionalProperties Source #

Instances

Produces TestInlineAdditionalProperties MimeNoContent Source # |

Consumes TestInlineAdditionalProperties MimeJSON Source #

    application/json

HasBodyParam TestInlineAdditionalProperties RequestBody Source # | Body Param "request_body" - request body
Methods setBodyParam :: (Consumes TestInlineAdditionalProperties contentType, MimeRender contentType RequestBody) => OpenAPIPetstoreRequest TestInlineAdditionalProperties contentType res accept -> RequestBody -> OpenAPIPetstoreRequest TestInlineAdditionalProperties contentType res accept Source #

### testJsonFormData

testJsonFormData Source #

Arguments

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

    GET /fake/jsonFormData

test json serialization of form data

data TestJsonFormData Source #

Instances

Produces TestJsonFormData MimeNoContent Source # |

Consumes TestJsonFormData MimeFormUrlEncoded Source #

    application/x-www-form-urlencoded