9.9 KiB
FakeApi
All URIs are relative to /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 | |
| 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 |
| testInlineAdditionalProperties | POST /fake/inline-additionalProperties | test inline additionalProperties |
| testJsonFormData | GET /fake/jsonFormData | test json serialization of form data |
fakeOuterBooleanSerialize
Test serialization of outer boolean types
Example
petstore-cli fakeOuterBooleanSerialize
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | boolean | Input boolean as post body | [optional] |
Return type
boolean
Authorization
No authorization required
HTTP request headers
- Content-Type: Not Applicable
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fakeOuterCompositeSerialize
Test serialization of object with outer number type
Example
petstore-cli fakeOuterCompositeSerialize
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| outerComposite | OuterComposite | Input composite as post body | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not Applicable
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fakeOuterNumberSerialize
Test serialization of outer number types
Example
petstore-cli fakeOuterNumberSerialize
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | integer | Input number as post body | [optional] |
Return type
integer
Authorization
No authorization required
HTTP request headers
- Content-Type: Not Applicable
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fakeOuterStringSerialize
Test serialization of outer string types
Example
petstore-cli fakeOuterStringSerialize
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| body | string | Input string as post body | [optional] |
Return type
string
Authorization
No authorization required
HTTP request headers
- Content-Type: Not Applicable
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
testBodyWithQueryParams
Example
petstore-cli testBodyWithQueryParams query=value
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| query | string | ||
| user | User |
Return type
(empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: Not Applicable
[Back to top] [Back to API list] [Back to Model list] [Back to README]
testClientModel
To test "client" model
To test "client" model
Example
petstore-cli testClientModel
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| client | Client | client model |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
testEndpointParameters
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
Example
petstore-cli testEndpointParameters
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| number | integer | None | [default to null] |
| double | float | None | [default to null] |
| patternWithoutDelimiter | string | None | [default to null] |
| byte | string | None | [default to null] |
| integer | integer | None | [optional] [default to null] |
| int32 | integer | None | [optional] [default to null] |
| int64 | integer | None | [optional] [default to null] |
| float | float | None | [optional] [default to null] |
| string | string | None | [optional] [default to null] |
| binary | binary | None | [optional] [default to null] |
| date | string | None | [optional] [default to null] |
| dateTime | string | None | [optional] [default to null] |
| password | string | None | [optional] [default to null] |
| callback | string | None | [optional] [default to null] |
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: application/x-www-form-urlencoded
- Accept: Not Applicable
[Back to top] [Back to API list] [Back to Model list] [Back to README]
testEnumParameters
To test enum parameters
To test enum parameters
Example
petstore-cli testEnumParameters enum_header_string_array:value enum_header_string:value Specify as: enum_query_string_array="value1,value2,..." enum_query_string=value enum_query_integer=value enum_query_double=value
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| enumHeaderStringArray | array[string] | Header parameter enum test (string array) | [optional] |
| enumHeaderString | string | Header parameter enum test (string) | [optional] [default to -efg] |
| enumQueryStringArray | array[string] | Query parameter enum test (string array) | [optional] |
| enumQueryString | string | Query parameter enum test (string) | [optional] [default to -efg] |
| enumQueryInteger | integer | Query parameter enum test (double) | [optional] |
| enumQueryDouble | float | Query parameter enum test (double) | [optional] |
| enumFormStringArray | array[string] | Form parameter enum test (string array) | [optional] [default to $] |
| enumFormString | string | Form parameter enum test (string) | [optional] [default to -efg] |
Return type
(empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: application/x-www-form-urlencoded
- Accept: Not Applicable
[Back to top] [Back to API list] [Back to Model list] [Back to README]
testInlineAdditionalProperties
test inline additionalProperties
Example
petstore-cli testInlineAdditionalProperties
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| requestBody | map[String, string] | request body |
Return type
(empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: Not Applicable
[Back to top] [Back to API list] [Back to Model list] [Back to README]
testJsonFormData
test json serialization of form data
Example
petstore-cli testJsonFormData
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| param | string | field1 | [default to null] |
| param2 | string | field2 | [default to null] |
Return type
(empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: application/x-www-form-urlencoded
- Accept: Not Applicable
[Back to top] [Back to API list] [Back to Model list] [Back to README]