11# Petstore::FakeApi
22
3- All URIs are relative to * http://petstore.swagger.io:80 /v2 *
3+ All URIs are relative to * http://localhost /v2 *
44
55| Method | HTTP request | Description |
66| ------ | ------------ | ----------- |
@@ -12,6 +12,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
1212| [ ** fake_outer_number_serialize** ] ( FakeApi.md#fake_outer_number_serialize ) | ** POST** /fake/outer/number | |
1313| [ ** fake_outer_string_serialize** ] ( FakeApi.md#fake_outer_string_serialize ) | ** POST** /fake/outer/string | |
1414| [ ** fake_property_enum_integer_serialize** ] ( FakeApi.md#fake_property_enum_integer_serialize ) | ** POST** /fake/property/enum-int | |
15+ | [ ** get_parameter_name_mapping** ] ( FakeApi.md#get_parameter_name_mapping ) | ** GET** /fake/parameter-name-mapping | parameter name mapping test |
1516| [ ** test_additional_properties_reference** ] ( FakeApi.md#test_additional_properties_reference ) | ** POST** /fake/additionalProperties-reference | test referenced additionalProperties |
1617| [ ** test_body_with_binary** ] ( FakeApi.md#test_body_with_binary ) | ** PUT** /fake/body-with-binary | |
1718| [ ** test_body_with_file_schema** ] ( FakeApi.md#test_body_with_file_schema ) | ** PUT** /fake/body-with-file-schema | |
@@ -23,7 +24,6 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
2324| [ ** test_inline_additional_properties** ] ( FakeApi.md#test_inline_additional_properties ) | ** POST** /fake/inline-additionalProperties | test inline additionalProperties |
2425| [ ** test_inline_freeform_additional_properties** ] ( FakeApi.md#test_inline_freeform_additional_properties ) | ** POST** /fake/inline-freeform-additionalProperties | test inline free-form additionalProperties |
2526| [ ** test_json_form_data** ] ( FakeApi.md#test_json_form_data ) | ** GET** /fake/jsonFormData | test json serialization of form data |
26- | [ ** test_nullable** ] ( FakeApi.md#test_nullable ) | ** POST** /fake/nullable | test nullable parent property |
2727| [ ** test_query_parameter_collection_format** ] ( FakeApi.md#test_query_parameter_collection_format ) | ** PUT** /fake/test-query-parameters | |
2828| [ ** test_string_map_reference** ] ( FakeApi.md#test_string_map_reference ) | ** POST** /fake/stringMap-reference | test referenced string map |
2929
@@ -546,6 +546,73 @@ No authorization required
546546- ** Accept** : * /*
547547
548548
549+ ## get_parameter_name_mapping
550+
551+ > get_parameter_name_mapping(_ type, type, type_ , http_debug_option)
552+
553+ parameter name mapping test
554+
555+ ### Examples
556+
557+ ``` ruby
558+ require ' time'
559+ require ' petstore'
560+
561+ api_instance = Petstore ::FakeApi .new
562+ _type = 789 # Integer | _type
563+ type = ' type_example' # String | type
564+ type_ = ' type__example' # String | type_
565+ http_debug_option = ' http_debug_option_example' # String | http debug option (to test parameter naming option)
566+
567+ begin
568+ # parameter name mapping test
569+ api_instance.get_parameter_name_mapping(_type , type, type_, http_debug_option)
570+ rescue Petstore ::ApiError => e
571+ puts " Error when calling FakeApi->get_parameter_name_mapping: #{ e } "
572+ end
573+ ```
574+
575+ #### Using the get_parameter_name_mapping_with_http_info variant
576+
577+ This returns an Array which contains the response data (` nil ` in this case), status code and headers.
578+
579+ > <Array(nil, Integer, Hash)> get_parameter_name_mapping_with_http_info(_ type, type, type_ , http_debug_option)
580+
581+ ``` ruby
582+ begin
583+ # parameter name mapping test
584+ data, status_code, headers = api_instance.get_parameter_name_mapping_with_http_info(_type , type, type_, http_debug_option)
585+ p status_code # => 2xx
586+ p headers # => { ... }
587+ p data # => nil
588+ rescue Petstore ::ApiError => e
589+ puts " Error when calling FakeApi->get_parameter_name_mapping_with_http_info: #{ e } "
590+ end
591+ ```
592+
593+ ### Parameters
594+
595+ | Name | Type | Description | Notes |
596+ | ---- | ---- | ----------- | ----- |
597+ | ** _ type** | ** Integer** | _ type | |
598+ | ** type** | ** String** | type | |
599+ | ** type_ ** | ** String** | type_ | |
600+ | ** http_debug_option** | ** String** | http debug option (to test parameter naming option) | |
601+
602+ ### Return type
603+
604+ nil (empty response body)
605+
606+ ### Authorization
607+
608+ No authorization required
609+
610+ ### HTTP request headers
611+
612+ - ** Content-Type** : Not defined
613+ - ** Accept** : Not defined
614+
615+
549616## test_additional_properties_reference
550617
551618> test_additional_properties_reference(request_body)
@@ -1311,69 +1378,6 @@ No authorization required
13111378- ** Accept** : Not defined
13121379
13131380
1314- ## test_nullable
1315-
1316- > test_nullable(child_with_nullable)
1317-
1318- test nullable parent property
1319-
1320-
1321-
1322- ### Examples
1323-
1324- ``` ruby
1325- require ' time'
1326- require ' petstore'
1327-
1328- api_instance = Petstore ::FakeApi .new
1329- child_with_nullable = Petstore ::ChildWithNullable .new # ChildWithNullable | request body
1330-
1331- begin
1332- # test nullable parent property
1333- api_instance.test_nullable(child_with_nullable)
1334- rescue Petstore ::ApiError => e
1335- puts " Error when calling FakeApi->test_nullable: #{ e } "
1336- end
1337- ```
1338-
1339- #### Using the test_nullable_with_http_info variant
1340-
1341- This returns an Array which contains the response data (` nil ` in this case), status code and headers.
1342-
1343- > <Array(nil, Integer, Hash)> test_nullable_with_http_info(child_with_nullable)
1344-
1345- ``` ruby
1346- begin
1347- # test nullable parent property
1348- data, status_code, headers = api_instance.test_nullable_with_http_info(child_with_nullable)
1349- p status_code # => 2xx
1350- p headers # => { ... }
1351- p data # => nil
1352- rescue Petstore ::ApiError => e
1353- puts " Error when calling FakeApi->test_nullable_with_http_info: #{ e } "
1354- end
1355- ```
1356-
1357- ### Parameters
1358-
1359- | Name | Type | Description | Notes |
1360- | ---- | ---- | ----------- | ----- |
1361- | ** child_with_nullable** | [ ** ChildWithNullable** ] ( ChildWithNullable.md ) | request body | |
1362-
1363- ### Return type
1364-
1365- nil (empty response body)
1366-
1367- ### Authorization
1368-
1369- No authorization required
1370-
1371- ### HTTP request headers
1372-
1373- - ** Content-Type** : application/json
1374- - ** Accept** : Not defined
1375-
1376-
13771381## test_query_parameter_collection_format
13781382
13791383> test_query_parameter_collection_format(pipe, ioutil, http, url, context, allow_empty, opts)
0 commit comments