forked from loafle/openapi-generator-original
Add multiple inheritance support to Perl client (#1681)
* add multiple inheritance support to perl client * remove allof test from fake petstore
This commit is contained in:
18
samples/client/petstore/perl/docs/Adult.md
Normal file
18
samples/client/petstore/perl/docs/Adult.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# WWW::OpenAPIClient::Object::Adult
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::Adult;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**duplicated_optional** | **int** | | [optional]
|
||||
**duplicated_required** | **int** | |
|
||||
**children** | [**ARRAY[Child]**](Child.md) | | [optional]
|
||||
**adult_required** | **boolean** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -8,8 +8,6 @@ use WWW::OpenAPIClient::Object::Cat;
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**class_name** | **string** | |
|
||||
**color** | **string** | | [optional] [default to 'red']
|
||||
**declawed** | **boolean** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -9,7 +9,7 @@ use WWW::OpenAPIClient::Object::Category;
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**id** | **int** | | [optional]
|
||||
**name** | **string** | | [optional]
|
||||
**name** | **string** | | [default to 'default-name']
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
16
samples/client/petstore/perl/docs/Child.md
Normal file
16
samples/client/petstore/perl/docs/Child.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# WWW::OpenAPIClient::Object::Child
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::Child;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**age** | **int** | | [optional]
|
||||
**first_name** | **string** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
54
samples/client/petstore/perl/docs/DefaultApi.md
Normal file
54
samples/client/petstore/perl/docs/DefaultApi.md
Normal file
@@ -0,0 +1,54 @@
|
||||
# WWW::OpenAPIClient::DefaultApi
|
||||
|
||||
## Load the API package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::DefaultApi;
|
||||
```
|
||||
|
||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**foo_get**](DefaultApi.md#foo_get) | **GET** /foo |
|
||||
|
||||
|
||||
# **foo_get**
|
||||
> InlineResponseDefault foo_get()
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::DefaultApi;
|
||||
my $api_instance = WWW::OpenAPIClient::DefaultApi->new(
|
||||
);
|
||||
|
||||
|
||||
eval {
|
||||
my $result = $api_instance->foo_get();
|
||||
print Dumper($result);
|
||||
};
|
||||
if ($@) {
|
||||
warn "Exception when calling DefaultApi->foo_get: $@\n";
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
This endpoint does not need any parameter.
|
||||
|
||||
### Return type
|
||||
|
||||
[**InlineResponseDefault**](InlineResponseDefault.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **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)
|
||||
|
||||
@@ -8,8 +8,6 @@ use WWW::OpenAPIClient::Object::Dog;
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**class_name** | **string** | |
|
||||
**color** | **string** | | [optional] [default to 'red']
|
||||
**breed** | **string** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
@@ -18,6 +18,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_group_parameters**](FakeApi.md#test_group_parameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
|
||||
[**test_inline_additional_properties**](FakeApi.md#test_inline_additional_properties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
|
||||
[**test_json_form_data**](FakeApi.md#test_json_form_data) | **GET** /fake/jsonFormData | test json serialization of form data
|
||||
|
||||
@@ -476,6 +477,61 @@ 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_group_parameters**
|
||||
> test_group_parameters(required_string_group => $required_string_group, required_boolean_group => $required_boolean_group, required_int64_group => $required_int64_group, string_group => $string_group, boolean_group => $boolean_group, int64_group => $int64_group)
|
||||
|
||||
Fake endpoint to test group parameters (optional)
|
||||
|
||||
Fake endpoint to test group parameters (optional)
|
||||
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
);
|
||||
|
||||
my $required_string_group = 56; # int | Required String in group parameters
|
||||
my $required_boolean_group = null; # boolean | Required Boolean in group parameters
|
||||
my $required_int64_group = 789; # int | Required Integer in group parameters
|
||||
my $string_group = 56; # int | String in group parameters
|
||||
my $boolean_group = null; # boolean | Boolean in group parameters
|
||||
my $int64_group = 789; # int | Integer in group parameters
|
||||
|
||||
eval {
|
||||
$api_instance->test_group_parameters(required_string_group => $required_string_group, required_boolean_group => $required_boolean_group, required_int64_group => $required_int64_group, string_group => $string_group, boolean_group => $boolean_group, int64_group => $int64_group);
|
||||
};
|
||||
if ($@) {
|
||||
warn "Exception when calling FakeApi->test_group_parameters: $@\n";
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**required_string_group** | **int**| Required String in group parameters |
|
||||
**required_boolean_group** | **boolean**| Required Boolean in group parameters |
|
||||
**required_int64_group** | **int**| Required Integer in group parameters |
|
||||
**string_group** | **int**| String in group parameters | [optional]
|
||||
**boolean_group** | **boolean**| Boolean in group parameters | [optional]
|
||||
**int64_group** | **int**| Integer in group parameters | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **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)
|
||||
|
||||
# **test_inline_additional_properties**
|
||||
> test_inline_additional_properties(request_body => $request_body)
|
||||
|
||||
|
||||
15
samples/client/petstore/perl/docs/Foo.md
Normal file
15
samples/client/petstore/perl/docs/Foo.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# WWW::OpenAPIClient::Object::Foo
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::Foo;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**bar** | **string** | | [optional] [default to 'bar']
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
16
samples/client/petstore/perl/docs/Human.md
Normal file
16
samples/client/petstore/perl/docs/Human.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# WWW::OpenAPIClient::Object::Human
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::Human;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**___type** | **string** | | [optional]
|
||||
**body** | **string** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
16
samples/client/petstore/perl/docs/InlineObject.md
Normal file
16
samples/client/petstore/perl/docs/InlineObject.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# WWW::OpenAPIClient::Object::InlineObject
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::InlineObject;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**name** | **string** | Updated name of the pet | [optional]
|
||||
**status** | **string** | Updated status of the pet | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
16
samples/client/petstore/perl/docs/InlineObject1.md
Normal file
16
samples/client/petstore/perl/docs/InlineObject1.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# WWW::OpenAPIClient::Object::InlineObject1
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::InlineObject1;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**additional_metadata** | **string** | Additional data to pass to server | [optional]
|
||||
**file** | **string** | file to upload | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
16
samples/client/petstore/perl/docs/InlineObject2.md
Normal file
16
samples/client/petstore/perl/docs/InlineObject2.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# WWW::OpenAPIClient::Object::InlineObject2
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::InlineObject2;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**enum_form_string_array** | **ARRAY[string]** | Form parameter enum test (string array) | [optional]
|
||||
**enum_form_string** | **string** | Form parameter enum test (string) | [optional] [default to '-efg']
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
28
samples/client/petstore/perl/docs/InlineObject3.md
Normal file
28
samples/client/petstore/perl/docs/InlineObject3.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# WWW::OpenAPIClient::Object::InlineObject3
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::InlineObject3;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**integer** | **int** | None | [optional]
|
||||
**int32** | **int** | None | [optional]
|
||||
**int64** | **int** | None | [optional]
|
||||
**number** | **double** | None |
|
||||
**float** | **double** | None | [optional]
|
||||
**double** | **double** | None |
|
||||
**string** | **string** | None | [optional]
|
||||
**pattern_without_delimiter** | **string** | None |
|
||||
**byte** | **string** | None |
|
||||
**binary** | **string** | None | [optional]
|
||||
**date** | **DateTime** | None | [optional]
|
||||
**date_time** | **DateTime** | None | [optional]
|
||||
**password** | **string** | None | [optional]
|
||||
**callback** | **string** | None | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
16
samples/client/petstore/perl/docs/InlineObject4.md
Normal file
16
samples/client/petstore/perl/docs/InlineObject4.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# WWW::OpenAPIClient::Object::InlineObject4
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::InlineObject4;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**param** | **string** | field1 |
|
||||
**param2** | **string** | field2 |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
16
samples/client/petstore/perl/docs/InlineObject5.md
Normal file
16
samples/client/petstore/perl/docs/InlineObject5.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# WWW::OpenAPIClient::Object::InlineObject5
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::InlineObject5;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**additional_metadata** | **string** | Additional data to pass to server | [optional]
|
||||
**required_file** | **string** | file to upload |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
15
samples/client/petstore/perl/docs/InlineResponseDefault.md
Normal file
15
samples/client/petstore/perl/docs/InlineResponseDefault.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# WWW::OpenAPIClient::Object::InlineResponseDefault
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::InlineResponseDefault;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**string** | [**Foo**](Foo.md) | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
||||
**map_map_of_string** | **HASH[string,HASH[string,string]]** | | [optional]
|
||||
**map_of_enum_string** | **HASH[string,string]** | | [optional]
|
||||
**direct_map** | **HASH[string,boolean]** | | [optional]
|
||||
**indirect_map** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||
**indirect_map** | **HASH[string,boolean]** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
20
samples/client/petstore/perl/docs/Person.md
Normal file
20
samples/client/petstore/perl/docs/Person.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# WWW::OpenAPIClient::Object::Person
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::OpenAPIClient::Object::Person;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**___type** | **string** | | [optional]
|
||||
**last_name** | **string** | | [optional]
|
||||
**first_name** | **string** | | [optional]
|
||||
**duplicated_optional** | **string** | | [optional]
|
||||
**duplicated_required** | **string** | |
|
||||
**person_required** | **DateTime** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@ my $api_instance = WWW::OpenAPIClient::PetApi->new(
|
||||
access_token => 'YOUR_ACCESS_TOKEN',
|
||||
);
|
||||
|
||||
my $tags = [("inner_example")]; # ARRAY[string] | Tags to filter by
|
||||
my $tags = [("null")]; # ARRAY[string] | Tags to filter by
|
||||
|
||||
eval {
|
||||
my $result = $api_instance->find_pets_by_tags(tags => $tags);
|
||||
|
||||
Reference in New Issue
Block a user