8.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 | |
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 | OuterBoolean | Input boolean as post body | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not Applicable
- Accept: Not Applicable
[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 |
---|---|---|---|
body | OuterComposite | Input composite as post body | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not Applicable
- Accept: Not Applicable
[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 | OuterNumber | Input number as post body | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not Applicable
- Accept: Not Applicable
[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 | OuterString | Input string as post body | [optional] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not Applicable
- 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 |
---|---|---|---|
body | 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 | |
double | float | None | |
patternWithoutDelimiter | string | None | |
byte | string | None | |
integer | integer | None | [optional] |
int32 | integer | None | [optional] |
int64 | integer | None | [optional] |
float | float | None | [optional] |
string | string | None | [optional] |
binary | binary | None | [optional] |
date | string | None | [optional] |
dateTime | string | None | [optional] |
password | string | None | [optional] |
callback | string | None | [optional] |
Return type
(empty response body)
Authorization
HTTP request headers
- Content-Type: application/xml; charset=utf-8, application/json; charset=utf-8
- Accept: application/xml; charset=utf-8, application/json; charset=utf-8
[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=value enum_query_integer=value
Parameters
Name | Type | Description | Notes |
---|---|---|---|
enumFormStringArray | array[string] | Form parameter enum test (string array) | [optional] |
enumFormString | string | Form parameter enum test (string) | [optional] [default to -efg] |
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] |
Return type
(empty response body)
Authorization
No authorization required
HTTP request headers
- Content-Type: /
- Accept: /
[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 |
---|---|---|---|
param | map | 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 | |
param2 | string | field2 |
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]