[6313] Add imports to perl objects. (#6500)

This commit is contained in:
Larry Bordowitz
2017-09-18 19:11:38 -07:00
committed by wing328
parent 146b107774
commit 65d788396b
63 changed files with 777 additions and 196 deletions

View File

@@ -0,0 +1,60 @@
# WWW::SwaggerClient::AnotherfakeApi
## Load the API package
```perl
use WWW::SwaggerClient::Object::AnotherfakeApi;
```
All URIs are relative to *http://petstore.swagger.io:80/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**test_special_tags**](AnotherfakeApi.md#test_special_tags) | **PATCH** /another-fake/dummy | To test special tags
# **test_special_tags**
> Client test_special_tags(body => $body)
To test special tags
To test special tags
### Example
```perl
use Data::Dumper;
use WWW::SwaggerClient::AnotherfakeApi;
my $api_instance = WWW::SwaggerClient::AnotherfakeApi->new(
);
my $body = WWW::SwaggerClient::Object::Client->new(); # Client | client model
eval {
my $result = $api_instance->test_special_tags(body => $body);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AnotherfakeApi->test_special_tags: $@\n";
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**body** | [**Client**](Client.md)| client model |
### Return type
[**Client**](Client.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

View File

@@ -16,6 +16,7 @@ Method | HTTP request | Description
[**test_client_model**](FakeApi.md#test_client_model) | **PATCH** /fake | To test \"client\" model
[**test_endpoint_parameters**](FakeApi.md#test_endpoint_parameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
[**test_enum_parameters**](FakeApi.md#test_enum_parameters) | **GET** /fake | To test enum parameters
[**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data
# **fake_outer_boolean_serialize**
@@ -269,7 +270,7 @@ my $api_instance = WWW::SwaggerClient::FakeApi->new(
my $number = 3.4; # Number | None
my $double = 1.2; # double | None
my $pattern_without_delimiter = 'pattern_without_delimiter_example'; # string | None
my $byte = 'B'; # string | None
my $byte = 'byte_example'; # string | None
my $integer = 56; # int | None
my $int32 = 56; # int | None
my $int64 = 789; # int | None
@@ -382,3 +383,50 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **test_json_form_data**
> test_json_form_data(param => $param, param2 => $param2)
test json serialization of form data
### Example
```perl
use Data::Dumper;
use WWW::SwaggerClient::FakeApi;
my $api_instance = WWW::SwaggerClient::FakeApi->new(
);
my $param = 'param_example'; # string | field1
my $param2 = 'param2_example'; # string | field2
eval {
$api_instance->test_json_form_data(param => $param, param2 => $param2);
};
if ($@) {
warn "Exception when calling FakeApi->test_json_form_data: $@\n";
}
```
### Parameters
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**param** | **string**| field1 |
**param2** | **string**| field2 |
### Return type
void (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

View File

@@ -22,6 +22,11 @@ To test class name in snake case
use Data::Dumper;
use WWW::SwaggerClient::FakeClassnameTags123Api;
my $api_instance = WWW::SwaggerClient::FakeClassnameTags123Api->new(
# Configure API key authorization: api_key_query
api_key => {'api_key_query' => 'YOUR_API_KEY'},
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#api_key_prefix => {'api_key_query' => 'Bearer'},
);
my $body = WWW::SwaggerClient::Object::Client->new(); # Client | client model
@@ -47,7 +52,7 @@ Name | Type | Description | Notes
### Authorization
No authorization required
[api_key_query](../README.md#api_key_query)
### HTTP request headers