William Cheng 4845eaa81d
Update bash Petstore OAS2 (#112)
* update bash petstore oas2, fix default parameter, map file to binary

* update bash petstore with oas3 script
2018-04-17 22:39:26 +08:00

8.8 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 boolean Input boolean as post body [optional]

Return type

OuterBoolean

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • 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

OuterComposite

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • 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

OuterNumber

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • 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

OuterString

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

[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

Client

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not Applicable
  • 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_basic_test

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 enum_query_string_array=value2 enum_query_string_array=...  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]
enumQueryStringArray array[string] Query parameter enum test (string array) [optional]
enumQueryString string Query parameter enum test (string) [optional]
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]
enumFormString string Form parameter enum test (string) [optional]

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
UNKNOWN_PARAM_NAME **** 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
body4 Body_4 [optional]

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]