mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 09:02:43 +00:00
add doc for api method
This commit is contained in:
@@ -8,7 +8,7 @@ WWW::SwaggerClient::Role - a Moose role for the Swagger Petstore
|
||||
|
||||
Automatically generated by the Perl Swagger Codegen project:
|
||||
|
||||
- Build date: 2016-03-04T14:39:09.479+08:00
|
||||
- Build date: 2016-02-11T18:16:24.249+08:00
|
||||
- Build package: class io.swagger.codegen.languages.PerlClientCodegen
|
||||
- Codegen version:
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ has version_info => ( is => 'ro',
|
||||
default => sub { {
|
||||
app_name => 'Swagger Petstore',
|
||||
app_version => '1.0.0',
|
||||
generated_date => '2016-03-04T14:39:09.479+08:00',
|
||||
generated_date => '2016-02-11T18:16:24.249+08:00',
|
||||
generator_class => 'class io.swagger.codegen.languages.PerlClientCodegen',
|
||||
} },
|
||||
documentation => 'Information about the application version and the codegen codebase version'
|
||||
@@ -103,7 +103,7 @@ Automatically generated by the Perl Swagger Codegen project:
|
||||
|
||||
=over 4
|
||||
|
||||
=item Build date: 2016-03-04T14:39:09.479+08:00
|
||||
=item Build date: 2016-02-11T18:16:24.249+08:00
|
||||
|
||||
=item Build package: class io.swagger.codegen.languages.PerlClientCodegen
|
||||
|
||||
|
||||
@@ -25,6 +25,14 @@ $WWW::SwaggerClient::Configuration::password = 'password';
|
||||
|
||||
my $api = WWW::SwaggerClient::PetApi->new();
|
||||
|
||||
# exception handling
|
||||
#eval {
|
||||
# print "\nget_pet_by_id:".Dumper $api->get_pet_by_id(pet_id => 9999);
|
||||
#};
|
||||
#if ($@) {
|
||||
# print "Exception when calling: $@\n";
|
||||
#}
|
||||
|
||||
my $pet_id = 10008;
|
||||
|
||||
my $category = WWW::SwaggerClient::Object::Category->new('id' => '2', 'name' => 'perl');
|
||||
|
||||
Reference in New Issue
Block a user