All URIs are relative to http://petstore.swagger.io:80/v2
Method | HTTP request | Description |
---|---|---|
FakeOuterBooleanSerialize | Post /fake/outer/boolean | |
FakeOuterCompositeSerialize | Post /fake/outer/composite | |
FakeOuterNumberSerialize | Post /fake/outer/number | |
FakeOuterStringSerialize | Post /fake/outer/string | |
TestBodyWithFileSchema | Put /fake/body-with-file-schema | |
TestBodyWithQueryParams | Put /fake/body-with-query-params | |
TestClientModel | Patch /fake | To test "client" model |
TestEndpointParameters | Post /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 |
TestEnumParameters | Get /fake | To test enum parameters |
TestGroupParameters | Delete /fake | Fake endpoint to test group parameters (optional) |
TestInlineAdditionalProperties | Post /fake/inline-additionalProperties | test inline additionalProperties |
TestJsonFormData | Get /fake/jsonFormData | test json serialization of form data |
bool FakeOuterBooleanSerialize(ctx, optional)
Test serialization of outer boolean types
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *FakeOuterBooleanSerializeOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a FakeOuterBooleanSerializeOpts struct
Name | Type | Description | Notes |
---|---|---|---|
body | optional.Bool | Input boolean as post body |
bool
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OuterComposite FakeOuterCompositeSerialize(ctx, optional)
Test serialization of object with outer number type
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *FakeOuterCompositeSerializeOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a FakeOuterCompositeSerializeOpts struct
Name | Type | Description | Notes |
---|---|---|---|
outerComposite | optional.Interface of OuterComposite | Input composite as post body |
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
float32 FakeOuterNumberSerialize(ctx, optional)
Test serialization of outer number types
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *FakeOuterNumberSerializeOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a FakeOuterNumberSerializeOpts struct
Name | Type | Description | Notes |
---|---|---|---|
body | optional.Float32 | Input number as post body |
float32
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string FakeOuterStringSerialize(ctx, optional)
Test serialization of outer string types
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *FakeOuterStringSerializeOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a FakeOuterStringSerializeOpts struct
Name | Type | Description | Notes |
---|---|---|---|
body | optional.String | Input string as post body |
string
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestBodyWithFileSchema(ctx, fileSchemaTestClass)
For this test, the body for this request much reference a schema named File
.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
fileSchemaTestClass | FileSchemaTestClass |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestBodyWithQueryParams(ctx, query, user)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
query | string | ||
user | User |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Client TestClientModel(ctx, client) To test "client" model
To test "client" model
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
client | Client | client model |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestEndpointParameters(ctx, number, double, patternWithoutDelimiter, byte_, optional) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
number | float32 | None | |
double | float64 | None | |
patternWithoutDelimiter | string | None | |
byte_ | string | None | |
optional | *TestEndpointParametersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a TestEndpointParametersOpts struct
Name | Type | Description | Notes |
---|
integer | optional.Int32| None | int32_ | optional.Int32| None | int64_ | optional.Int64| None | float | optional.Float32| None | string_ | optional.String| None | binary | *optional.Interface of os.File***optional.os.File| None | date | optional.String| None | dateTime | optional.Time| None | password | optional.String| None | callback | optional.String| None |
(empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestEnumParameters(ctx, optional) To test enum parameters
To test enum parameters
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *TestEnumParametersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a TestEnumParametersOpts struct
Name | Type | Description | Notes |
---|---|---|---|
enumHeaderStringArray | optional.Interface of []string | Header parameter enum test (string array) | |
enumHeaderString | optional.String | Header parameter enum test (string) | [default to -efg] |
enumQueryStringArray | optional.Interface of []string | Query parameter enum test (string array) | |
enumQueryString | optional.String | Query parameter enum test (string) | [default to -efg] |
enumQueryInteger | optional.Int32 | Query parameter enum test (double) | |
enumQueryDouble | optional.Float64 | Query parameter enum test (double) | |
enumFormStringArray | optional.Interface of []string | Form parameter enum test (string array) | [default to $] |
enumFormString | optional.String | Form parameter enum test (string) | [default to -efg] |
(empty response body)
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestGroupParameters(ctx, requiredStringGroup, requiredBooleanGroup, requiredInt64Group, optional) Fake endpoint to test group parameters (optional)
Fake endpoint to test group parameters (optional)
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
requiredStringGroup | int32 | Required String in group parameters | |
requiredBooleanGroup | bool | Required Boolean in group parameters | |
requiredInt64Group | int64 | Required Integer in group parameters | |
optional | *TestGroupParametersOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a TestGroupParametersOpts struct
Name | Type | Description | Notes |
---|
stringGroup | optional.Int32| String in group parameters | booleanGroup | optional.Bool| Boolean in group parameters | int64Group | optional.Int64| Integer in group parameters |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestInlineAdditionalProperties(ctx, requestBody) test inline additionalProperties
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
requestBody | map[string]string | request body |
(empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TestJsonFormData(ctx, param, param2) test json serialization of form data
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
param | string | field1 | |
param2 | string | field2 |
(empty response body)
No authorization required
- Content-Type: application/x-www-form-urlencoded
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]