mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 08:12:47 +00:00
Squashed commit of the following:
commit c5a0d0f7394aa742fa336fff7e7c1d3049761868 Merge:8c4991ba3ef8ff8c8760Author: William Cheng <wing328hk@gmail.com> Date: Tue Aug 17 18:28:12 2021 +0800 Merge branch 'mustache-linting' of https://github.com/NathanBaulch/openapi-generator into NathanBaulch-mustache-linting commitf8ff8c8760Author: Nathan Baulch <nathan.baulch@gmail.com> Date: Thu Aug 5 14:12:47 2021 +1000 Reorder tags that handle missing values commitf5d8a33709Author: Nathan Baulch <nathan.baulch@gmail.com> Date: Thu Aug 5 14:08:59 2021 +1000 Use dot notation where possible commit493d14921eAuthor: Nathan Baulch <nathan.baulch@gmail.com> Date: Thu Aug 5 14:10:49 2021 +1000 Remove empty tags commit32480dc53fAuthor: Nathan Baulch <nathan.baulch@gmail.com> Date: Thu Aug 5 10:41:58 2021 +1000 Remove redundant sections commita8edabd722Author: Nathan Baulch <nathan.baulch@gmail.com> Date: Wed Aug 4 22:02:22 2021 +1000 Trim extra EOF new lines commite89bd7458eAuthor: Nathan Baulch <nathan.baulch@gmail.com> Date: Wed Aug 4 21:59:26 2021 +1000 Trim trailing whitespace
This commit is contained in:
@@ -19,7 +19,7 @@ To test special tags
|
||||
|
||||
To test special tags and operation ID starting with number
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::AnotherFakeApi;
|
||||
@@ -28,7 +28,7 @@ my $api_instance = WWW::OpenAPIClient::AnotherFakeApi->new(
|
||||
|
||||
my $client = WWW::OpenAPIClient::Object::Client->new(); # Client | client model
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->call_123_test_special_tags(client => $client);
|
||||
print Dumper($result);
|
||||
};
|
||||
|
||||
@@ -17,7 +17,7 @@ Method | HTTP request | Description
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::DefaultApi;
|
||||
@@ -25,7 +25,7 @@ my $api_instance = WWW::OpenAPIClient::DefaultApi->new(
|
||||
);
|
||||
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->foo_get();
|
||||
print Dumper($result);
|
||||
};
|
||||
|
||||
@@ -33,7 +33,7 @@ Method | HTTP request | Description
|
||||
|
||||
Health check endpoint
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -41,7 +41,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
);
|
||||
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->fake_health_get();
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -73,7 +73,7 @@ No authorization required
|
||||
|
||||
test http signature authentication
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -87,7 +87,7 @@ my $pet = WWW::OpenAPIClient::Object::Pet->new(); # Pet | Pet object that needs
|
||||
my $query_1 = "query_1_example"; # string | query parameter
|
||||
my $header_1 = "header_1_example"; # string | header parameter
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->fake_http_signature_test(pet => $pet, query_1 => $query_1, header_1 => $header_1);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -125,7 +125,7 @@ void (empty response body)
|
||||
|
||||
Test serialization of outer boolean types
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -134,7 +134,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
|
||||
my $body = WWW::OpenAPIClient::Object::boolean->new(); # boolean | Input boolean as post body
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->fake_outer_boolean_serialize(body => $body);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -171,7 +171,7 @@ No authorization required
|
||||
|
||||
Test serialization of object with outer number type
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -180,7 +180,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
|
||||
my $outer_composite = WWW::OpenAPIClient::Object::OuterComposite->new(); # OuterComposite | Input composite as post body
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->fake_outer_composite_serialize(outer_composite => $outer_composite);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -217,7 +217,7 @@ No authorization required
|
||||
|
||||
Test serialization of outer number types
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -226,7 +226,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
|
||||
my $body = WWW::OpenAPIClient::Object::double->new(); # double | Input number as post body
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->fake_outer_number_serialize(body => $body);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -263,7 +263,7 @@ No authorization required
|
||||
|
||||
Test serialization of outer string types
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -272,7 +272,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
|
||||
my $body = WWW::OpenAPIClient::Object::string->new(); # string | Input string as post body
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->fake_outer_string_serialize(body => $body);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -309,7 +309,7 @@ No authorization required
|
||||
|
||||
Test serialization of enum (int) properties with examples
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -318,7 +318,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
|
||||
my $outer_object_with_enum_property = WWW::OpenAPIClient::Object::OuterObjectWithEnumProperty->new(); # OuterObjectWithEnumProperty | Input enum (int) as post body
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->fake_property_enum_integer_serialize(outer_object_with_enum_property => $outer_object_with_enum_property);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -355,7 +355,7 @@ No authorization required
|
||||
|
||||
For this test, the body has to be a binary file.
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -364,7 +364,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
|
||||
my $body = WWW::OpenAPIClient::Object::string->new(); # string | image to upload
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->test_body_with_binary(body => $body);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -400,7 +400,7 @@ No authorization required
|
||||
|
||||
For this test, the body for this request must reference a schema named `File`.
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -409,7 +409,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
|
||||
my $file_schema_test_class = WWW::OpenAPIClient::Object::FileSchemaTestClass->new(); # FileSchemaTestClass |
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->test_body_with_file_schema(file_schema_test_class => $file_schema_test_class);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -443,7 +443,7 @@ No authorization required
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -453,7 +453,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
my $query = "query_example"; # string |
|
||||
my $user = WWW::OpenAPIClient::Object::User->new(); # User |
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->test_body_with_query_params(query => $query, user => $user);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -490,7 +490,7 @@ To test \"client\" model
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -499,7 +499,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
|
||||
my $client = WWW::OpenAPIClient::Object::Client->new(); # Client | client model
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->test_client_model(client => $client);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -536,7 +536,7 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
|
||||
|
||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -563,7 +563,7 @@ my $date_time = DateTime->from_epoch(epoch => str2time('null')); # DateTime | No
|
||||
my $password = "password_example"; # string | None
|
||||
my $callback = "callback_example"; # string | None
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->test_endpoint_parameters(number => $number, double => $double, pattern_without_delimiter => $pattern_without_delimiter, byte => $byte, integer => $integer, int32 => $int32, int64 => $int64, float => $float, string => $string, binary => $binary, date => $date, date_time => $date_time, password => $password, callback => $callback);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -612,7 +612,7 @@ To test enum parameters
|
||||
|
||||
To test enum parameters
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -628,7 +628,7 @@ my $enum_query_double = 3.4; # double | Query parameter enum test (double)
|
||||
my $enum_form_string_array = ['$']; # ARRAY[string] | Form parameter enum test (string array)
|
||||
my $enum_form_string = '-efg'; # string | Form parameter enum test (string)
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->test_enum_parameters(enum_header_string_array => $enum_header_string_array, enum_header_string => $enum_header_string, enum_query_string_array => $enum_query_string_array, enum_query_string => $enum_query_string, enum_query_integer => $enum_query_integer, enum_query_double => $enum_query_double, enum_form_string_array => $enum_form_string_array, enum_form_string => $enum_form_string);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -671,7 +671,7 @@ Fake endpoint to test group parameters (optional)
|
||||
|
||||
Fake endpoint to test group parameters (optional)
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -690,7 +690,7 @@ 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 {
|
||||
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 ($@) {
|
||||
@@ -729,7 +729,7 @@ void (empty response body)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -738,7 +738,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
|
||||
my $request_body = WWW::OpenAPIClient::Object::HASH[string,string]->new(); # HASH[string,string] | request body
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->test_inline_additional_properties(request_body => $request_body);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -772,7 +772,7 @@ No authorization required
|
||||
|
||||
test json serialization of form data
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -782,7 +782,7 @@ my $api_instance = WWW::OpenAPIClient::FakeApi->new(
|
||||
my $param = "param_example"; # string | field1
|
||||
my $param2 = "param2_example"; # string | field2
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->test_json_form_data(param => $param, param2 => $param2);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -819,7 +819,7 @@ No authorization required
|
||||
|
||||
To test the collection format in query parameters
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeApi;
|
||||
@@ -833,7 +833,7 @@ my $url = [("null")]; # ARRAY[string] |
|
||||
my $context = [("null")]; # ARRAY[string] |
|
||||
my $language = ('key' => "null"}; # HASH[string,string] |
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->test_query_parameter_collection_format(pipe => $pipe, ioutil => $ioutil, http => $http, url => $url, context => $context, language => $language);
|
||||
};
|
||||
if ($@) {
|
||||
|
||||
@@ -19,7 +19,7 @@ To test class name in snake case
|
||||
|
||||
To test class name in snake case
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::FakeClassnameTags123Api;
|
||||
@@ -33,7 +33,7 @@ my $api_instance = WWW::OpenAPIClient::FakeClassnameTags123Api->new(
|
||||
|
||||
my $client = WWW::OpenAPIClient::Object::Client->new(); # Client | client model
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->test_classname(client => $client);
|
||||
print Dumper($result);
|
||||
};
|
||||
|
||||
@@ -25,7 +25,7 @@ Method | HTTP request | Description
|
||||
|
||||
Add a new pet to the store
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::PetApi;
|
||||
@@ -37,7 +37,7 @@ my $api_instance = WWW::OpenAPIClient::PetApi->new(
|
||||
|
||||
my $pet = WWW::OpenAPIClient::Object::Pet->new(); # Pet | Pet object that needs to be added to the store
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->add_pet(pet => $pet);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -71,7 +71,7 @@ void (empty response body)
|
||||
|
||||
Deletes a pet
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::PetApi;
|
||||
@@ -84,7 +84,7 @@ my $api_instance = WWW::OpenAPIClient::PetApi->new(
|
||||
my $pet_id = 789; # int | Pet id to delete
|
||||
my $api_key = "api_key_example"; # string |
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->delete_pet(pet_id => $pet_id, api_key => $api_key);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -121,7 +121,7 @@ Finds Pets by status
|
||||
|
||||
Multiple status values can be provided with comma separated strings
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::PetApi;
|
||||
@@ -133,7 +133,7 @@ my $api_instance = WWW::OpenAPIClient::PetApi->new(
|
||||
|
||||
my $status = [("'available'")]; # ARRAY[string] | Status values that need to be considered for filter
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->find_pets_by_status(status => $status);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -170,7 +170,7 @@ Finds Pets by tags
|
||||
|
||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::PetApi;
|
||||
@@ -182,7 +182,7 @@ my $api_instance = WWW::OpenAPIClient::PetApi->new(
|
||||
|
||||
my $tags = [("null")]; # ARRAY[string] | Tags to filter by
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->find_pets_by_tags(tags => $tags);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -219,7 +219,7 @@ Find pet by ID
|
||||
|
||||
Returns a single pet
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::PetApi;
|
||||
@@ -233,7 +233,7 @@ my $api_instance = WWW::OpenAPIClient::PetApi->new(
|
||||
|
||||
my $pet_id = 789; # int | ID of pet to return
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->get_pet_by_id(pet_id => $pet_id);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -268,7 +268,7 @@ Name | Type | Description | Notes
|
||||
|
||||
Update an existing pet
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::PetApi;
|
||||
@@ -280,7 +280,7 @@ my $api_instance = WWW::OpenAPIClient::PetApi->new(
|
||||
|
||||
my $pet = WWW::OpenAPIClient::Object::Pet->new(); # Pet | Pet object that needs to be added to the store
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->update_pet(pet => $pet);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -314,7 +314,7 @@ void (empty response body)
|
||||
|
||||
Updates a pet in the store with form data
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::PetApi;
|
||||
@@ -328,7 +328,7 @@ my $pet_id = 789; # int | ID of pet that needs to be updated
|
||||
my $name = "name_example"; # string | Updated name of the pet
|
||||
my $status = "status_example"; # string | Updated status of the pet
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->update_pet_with_form(pet_id => $pet_id, name => $name, status => $status);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -364,7 +364,7 @@ void (empty response body)
|
||||
|
||||
uploads an image
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::PetApi;
|
||||
@@ -378,7 +378,7 @@ my $pet_id = 789; # int | ID of pet to update
|
||||
my $additional_metadata = "additional_metadata_example"; # string | Additional data to pass to server
|
||||
my $file = "/path/to/file"; # string | file to upload
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->upload_file(pet_id => $pet_id, additional_metadata => $additional_metadata, file => $file);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -415,7 +415,7 @@ Name | Type | Description | Notes
|
||||
|
||||
uploads an image (required)
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::PetApi;
|
||||
@@ -429,7 +429,7 @@ my $pet_id = 789; # int | ID of pet to update
|
||||
my $required_file = "/path/to/file"; # string | file to upload
|
||||
my $additional_metadata = "additional_metadata_example"; # string | Additional data to pass to server
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->upload_file_with_required_file(pet_id => $pet_id, required_file => $required_file, additional_metadata => $additional_metadata);
|
||||
print Dumper($result);
|
||||
};
|
||||
|
||||
@@ -22,7 +22,7 @@ Delete purchase order by ID
|
||||
|
||||
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::StoreApi;
|
||||
@@ -31,7 +31,7 @@ my $api_instance = WWW::OpenAPIClient::StoreApi->new(
|
||||
|
||||
my $order_id = "order_id_example"; # string | ID of the order that needs to be deleted
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->delete_order(order_id => $order_id);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -67,7 +67,7 @@ Returns pet inventories by status
|
||||
|
||||
Returns a map of status codes to quantities
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::StoreApi;
|
||||
@@ -80,7 +80,7 @@ my $api_instance = WWW::OpenAPIClient::StoreApi->new(
|
||||
);
|
||||
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->get_inventory();
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -114,7 +114,7 @@ Find purchase order by ID
|
||||
|
||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::StoreApi;
|
||||
@@ -123,7 +123,7 @@ my $api_instance = WWW::OpenAPIClient::StoreApi->new(
|
||||
|
||||
my $order_id = 789; # int | ID of pet that needs to be fetched
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->get_order_by_id(order_id => $order_id);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -158,7 +158,7 @@ No authorization required
|
||||
|
||||
Place an order for a pet
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::StoreApi;
|
||||
@@ -167,7 +167,7 @@ my $api_instance = WWW::OpenAPIClient::StoreApi->new(
|
||||
|
||||
my $order = WWW::OpenAPIClient::Object::Order->new(); # Order | order placed for purchasing the pet
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->place_order(order => $order);
|
||||
print Dumper($result);
|
||||
};
|
||||
|
||||
@@ -26,7 +26,7 @@ Create user
|
||||
|
||||
This can only be done by the logged in user.
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::UserApi;
|
||||
@@ -35,7 +35,7 @@ my $api_instance = WWW::OpenAPIClient::UserApi->new(
|
||||
|
||||
my $user = WWW::OpenAPIClient::Object::User->new(); # User | Created user object
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->create_user(user => $user);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -69,7 +69,7 @@ No authorization required
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::UserApi;
|
||||
@@ -78,7 +78,7 @@ my $api_instance = WWW::OpenAPIClient::UserApi->new(
|
||||
|
||||
my $user = [WWW::OpenAPIClient::Object::ARRAY[User]->new()]; # ARRAY[User] | List of user object
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->create_users_with_array_input(user => $user);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -112,7 +112,7 @@ No authorization required
|
||||
|
||||
Creates list of users with given input array
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::UserApi;
|
||||
@@ -121,7 +121,7 @@ my $api_instance = WWW::OpenAPIClient::UserApi->new(
|
||||
|
||||
my $user = [WWW::OpenAPIClient::Object::ARRAY[User]->new()]; # ARRAY[User] | List of user object
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->create_users_with_list_input(user => $user);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -157,7 +157,7 @@ Delete user
|
||||
|
||||
This can only be done by the logged in user.
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::UserApi;
|
||||
@@ -166,7 +166,7 @@ my $api_instance = WWW::OpenAPIClient::UserApi->new(
|
||||
|
||||
my $username = "username_example"; # string | The name that needs to be deleted
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->delete_user(username => $username);
|
||||
};
|
||||
if ($@) {
|
||||
@@ -200,7 +200,7 @@ No authorization required
|
||||
|
||||
Get user by user name
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::UserApi;
|
||||
@@ -209,7 +209,7 @@ my $api_instance = WWW::OpenAPIClient::UserApi->new(
|
||||
|
||||
my $username = "username_example"; # string | The name that needs to be fetched. Use user1 for testing.
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->get_user_by_name(username => $username);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -244,7 +244,7 @@ No authorization required
|
||||
|
||||
Logs user into the system
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::UserApi;
|
||||
@@ -254,7 +254,7 @@ my $api_instance = WWW::OpenAPIClient::UserApi->new(
|
||||
my $username = "username_example"; # string | The user name for login
|
||||
my $password = "password_example"; # string | The password for login in clear text
|
||||
|
||||
eval {
|
||||
eval {
|
||||
my $result = $api_instance->login_user(username => $username, password => $password);
|
||||
print Dumper($result);
|
||||
};
|
||||
@@ -290,7 +290,7 @@ No authorization required
|
||||
|
||||
Logs out current logged in user session
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::UserApi;
|
||||
@@ -298,7 +298,7 @@ my $api_instance = WWW::OpenAPIClient::UserApi->new(
|
||||
);
|
||||
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->logout_user();
|
||||
};
|
||||
if ($@) {
|
||||
@@ -331,7 +331,7 @@ Updated user
|
||||
|
||||
This can only be done by the logged in user.
|
||||
|
||||
### Example
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
use WWW::OpenAPIClient::UserApi;
|
||||
@@ -341,7 +341,7 @@ my $api_instance = WWW::OpenAPIClient::UserApi->new(
|
||||
my $username = "username_example"; # string | name that need to be deleted
|
||||
my $user = WWW::OpenAPIClient::Object::User->new(); # User | Updated user object
|
||||
|
||||
eval {
|
||||
eval {
|
||||
$api_instance->update_user(username => $username, user => $user);
|
||||
};
|
||||
if ($@) {
|
||||
|
||||
Reference in New Issue
Block a user