From 6e1688314653cbb1749ea947e09e03a939aad8bb Mon Sep 17 00:00:00 2001 From: wing328 Date: Sat, 19 Mar 2016 16:38:06 +0800 Subject: [PATCH 1/2] update perl documentation --- .../src/main/resources/perl/README.mustache | 10 +++--- .../src/main/resources/perl/api_doc.mustache | 10 +++--- samples/client/petstore/perl/README.md | 4 +-- samples/client/petstore/perl/docs/Name.md | 1 + samples/client/petstore/perl/docs/PetApi.md | 34 +++++++++---------- samples/client/petstore/perl/docs/StoreApi.md | 32 ++++++++--------- samples/client/petstore/perl/docs/UserApi.md | 4 +-- .../perl/lib/WWW/SwaggerClient/Object/Name.pm | 13 +++++-- .../perl/lib/WWW/SwaggerClient/Role.pm | 4 +-- 9 files changed, 61 insertions(+), 51 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/perl/README.mustache b/modules/swagger-codegen/src/main/resources/perl/README.mustache index e4271d94936..9cca4b34470 100644 --- a/modules/swagger-codegen/src/main/resources/perl/README.mustache +++ b/modules/swagger-codegen/src/main/resources/perl/README.mustache @@ -249,14 +249,14 @@ use warnings; use Data::Dumper; {{#apiInfo}}{{#apis}}{{#-first}}{{#operations}}{{#operation}}{{#-first}}{{#hasAuthMethods}}{{#authMethods}}{{#isBasic}} # Configure HTTP basic authorization: {{{name}}} -{{{moduleName}}}::Configuration::username = 'YOUR_USERNAME'; -{{{moduleName}}}::Configuration::password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}} +${{{moduleName}}}::Configuration::username = 'YOUR_USERNAME'; +${{{moduleName}}}::Configuration::password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}} # Configure API key authorization: {{{name}}} -{{{moduleName}}}::Configuration::api_key->{'{{{keyParamName}}}'} = 'YOUR_API_KEY'; +${{{moduleName}}}::Configuration::api_key->{'{{{keyParamName}}}'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#{{{moduleName}}}::Configuration::api_key_prefix->{'{{{keyParamName}}}'} = 'BEARER';{{/isApiKey}}{{#isOAuth}} +#${{{moduleName}}}::Configuration::api_key_prefix->{'{{{keyParamName}}}'} = 'BEARER';{{/isApiKey}}{{#isOAuth}} # Configure OAuth2 access token for authorization: {{{name}}} -{{{moduleName}}}::Configuration::access_token = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}} +${{{moduleName}}}::Configuration::access_token = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}} {{/hasAuthMethods}} my $api_instance = {{moduleName}}::{{classname}}->new(); diff --git a/modules/swagger-codegen/src/main/resources/perl/api_doc.mustache b/modules/swagger-codegen/src/main/resources/perl/api_doc.mustache index 35ab8253532..eb270b7e216 100644 --- a/modules/swagger-codegen/src/main/resources/perl/api_doc.mustache +++ b/modules/swagger-codegen/src/main/resources/perl/api_doc.mustache @@ -27,14 +27,14 @@ Method | HTTP request | Description use Data::Dumper; {{#hasAuthMethods}}{{#authMethods}}{{#isBasic}} # Configure HTTP basic authorization: {{{name}}} -{{{moduleName}}}::Configuration::username = 'YOUR_USERNAME'; -{{{moduleName}}}::Configuration::password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}} +${{{moduleName}}}::Configuration::username = 'YOUR_USERNAME'; +${{{moduleName}}}::Configuration::password = 'YOUR_PASSWORD';{{/isBasic}}{{#isApiKey}} # Configure API key authorization: {{{name}}} -{{{moduleName}}}::Configuration::api_key->{'{{{keyParamName}}}'} = 'YOUR_API_KEY'; +${{{moduleName}}}::Configuration::api_key->{'{{{keyParamName}}}'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#{{{moduleName}}}::Configuration::api_key_prefix->{'{{{keyParamName}}}'} = "BEARER";{{/isApiKey}}{{#isOAuth}} +#${{{moduleName}}}::Configuration::api_key_prefix->{'{{{keyParamName}}}'} = "BEARER";{{/isApiKey}}{{#isOAuth}} # Configure OAuth2 access token for authorization: {{{name}}} -{{{moduleName}}}::Configuration::access_token = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}} +${{{moduleName}}}::Configuration::access_token = 'YOUR_ACCESS_TOKEN';{{/isOAuth}}{{/authMethods}} {{/hasAuthMethods}} my $api_instance = {{moduleName}}::{{classname}}->new(); diff --git a/samples/client/petstore/perl/README.md b/samples/client/petstore/perl/README.md index c240e99a10d..63e3d3af90e 100644 --- a/samples/client/petstore/perl/README.md +++ b/samples/client/petstore/perl/README.md @@ -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-17T15:41:15.325+08:00 +- Build date: 2016-03-19T16:35:29.283+08:00 - Build package: class io.swagger.codegen.languages.PerlClientCodegen - Codegen version: @@ -271,7 +271,7 @@ use WWW::SwaggerClient::Object::User; use Data::Dumper; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $body = WWW::SwaggerClient::Object::Pet->new(); # Pet | Pet object that needs to be added to the store diff --git a/samples/client/petstore/perl/docs/Name.md b/samples/client/petstore/perl/docs/Name.md index 91d0a056ab8..13b5d0dde82 100644 --- a/samples/client/petstore/perl/docs/Name.md +++ b/samples/client/petstore/perl/docs/Name.md @@ -9,6 +9,7 @@ use WWW::SwaggerClient::Object::Name; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **int** | | [optional] +**snake_case** | **int** | | [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) diff --git a/samples/client/petstore/perl/docs/PetApi.md b/samples/client/petstore/perl/docs/PetApi.md index 608af63073d..971dc0772c8 100644 --- a/samples/client/petstore/perl/docs/PetApi.md +++ b/samples/client/petstore/perl/docs/PetApi.md @@ -34,7 +34,7 @@ Add a new pet to the store use Data::Dumper; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $body = WWW::SwaggerClient::Object::Pet->new(); # Pet | Pet object that needs to be added to the store @@ -80,7 +80,7 @@ Fake endpoint to test byte array in body parameter for adding a new pet to the s use Data::Dumper; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $body = WWW::SwaggerClient::Object::string->new(); # string | Pet object in the form of byte array @@ -126,7 +126,7 @@ Deletes a pet use Data::Dumper; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $pet_id = 789; # int | Pet id to delete @@ -174,7 +174,7 @@ Multiple status values can be provided with comma separated strings use Data::Dumper; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $status = (); # ARRAY[string] | Status values that need to be considered for query @@ -221,7 +221,7 @@ Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 use Data::Dumper; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $tags = (); # ARRAY[string] | Tags to filter by @@ -268,11 +268,11 @@ Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error cond use Data::Dumper; # Configure API key authorization: api_key -WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER"; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $pet_id = 789; # int | ID of pet that needs to be fetched @@ -319,11 +319,11 @@ Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error cond use Data::Dumper; # Configure API key authorization: api_key -WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER"; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $pet_id = 789; # int | ID of pet that needs to be fetched @@ -370,11 +370,11 @@ Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error cond use Data::Dumper; # Configure API key authorization: api_key -WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER"; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $pet_id = 789; # int | ID of pet that needs to be fetched @@ -421,7 +421,7 @@ Update an existing pet use Data::Dumper; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $body = WWW::SwaggerClient::Object::Pet->new(); # Pet | Pet object that needs to be added to the store @@ -467,7 +467,7 @@ Updates a pet in the store with form data use Data::Dumper; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $pet_id = 'pet_id_example'; # string | ID of pet that needs to be updated @@ -517,7 +517,7 @@ uploads an image use Data::Dumper; # Configure OAuth2 access token for authorization: petstore_auth -WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; +$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; my $api_instance = WWW::SwaggerClient::PetApi->new(); my $pet_id = 789; # int | ID of pet to update diff --git a/samples/client/petstore/perl/docs/StoreApi.md b/samples/client/petstore/perl/docs/StoreApi.md index 9364b725364..7b9e35c977d 100644 --- a/samples/client/petstore/perl/docs/StoreApi.md +++ b/samples/client/petstore/perl/docs/StoreApi.md @@ -72,13 +72,13 @@ A single status value can be provided as a string use Data::Dumper; # Configure API key authorization: test_api_client_id -WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_id'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_id'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_id'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_id'} = "BEARER"; # Configure API key authorization: test_api_client_secret -WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_secret'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_secret'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_secret'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_secret'} = "BEARER"; my $api_instance = WWW::SwaggerClient::StoreApi->new(); my $status = 'status_example'; # string | Status value that needs to be considered for query @@ -125,9 +125,9 @@ Returns a map of status codes to quantities use Data::Dumper; # Configure API key authorization: api_key -WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER"; my $api_instance = WWW::SwaggerClient::StoreApi->new(); @@ -170,9 +170,9 @@ Returns an arbitrary object which is actually a map of status codes to quantitie use Data::Dumper; # Configure API key authorization: api_key -WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "BEARER"; my $api_instance = WWW::SwaggerClient::StoreApi->new(); @@ -215,13 +215,13 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge use Data::Dumper; # Configure API key authorization: test_api_key_header -WWW::SwaggerClient::Configuration::api_key->{'test_api_key_header'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'test_api_key_header'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'test_api_key_header'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'test_api_key_header'} = "BEARER"; # Configure API key authorization: test_api_key_query -WWW::SwaggerClient::Configuration::api_key->{'test_api_key_query'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'test_api_key_query'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'test_api_key_query'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'test_api_key_query'} = "BEARER"; my $api_instance = WWW::SwaggerClient::StoreApi->new(); my $order_id = 'order_id_example'; # string | ID of pet that needs to be fetched @@ -268,13 +268,13 @@ Place an order for a pet use Data::Dumper; # Configure API key authorization: test_api_client_id -WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_id'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_id'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_id'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_id'} = "BEARER"; # Configure API key authorization: test_api_client_secret -WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_secret'} = 'YOUR_API_KEY'; +$WWW::SwaggerClient::Configuration::api_key->{'x-test_api_client_secret'} = 'YOUR_API_KEY'; # uncomment below to setup prefix (e.g. BEARER) for API key, if needed -#WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_secret'} = "BEARER"; +#$WWW::SwaggerClient::Configuration::api_key_prefix->{'x-test_api_client_secret'} = "BEARER"; my $api_instance = WWW::SwaggerClient::StoreApi->new(); my $body = WWW::SwaggerClient::Object::Order->new(); # Order | order placed for purchasing the pet diff --git a/samples/client/petstore/perl/docs/UserApi.md b/samples/client/petstore/perl/docs/UserApi.md index 204b42d9cb3..7330c1b3980 100644 --- a/samples/client/petstore/perl/docs/UserApi.md +++ b/samples/client/petstore/perl/docs/UserApi.md @@ -160,8 +160,8 @@ This can only be done by the logged in user. use Data::Dumper; # Configure HTTP basic authorization: test_http_basic -WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME'; -WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD'; +$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME'; +$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD'; my $api_instance = WWW::SwaggerClient::UserApi->new(); my $username = 'username_example'; # string | The name that needs to be deleted diff --git a/samples/client/petstore/perl/lib/WWW/SwaggerClient/Object/Name.pm b/samples/client/petstore/perl/lib/WWW/SwaggerClient/Object/Name.pm index 2413c55650d..f136a7f031e 100644 --- a/samples/client/petstore/perl/lib/WWW/SwaggerClient/Object/Name.pm +++ b/samples/client/petstore/perl/lib/WWW/SwaggerClient/Object/Name.pm @@ -110,15 +110,24 @@ __PACKAGE__->method_documentation({ format => '', read_only => '', }, + 'snake_case' => { + datatype => 'int', + base_name => 'snake_case', + description => '', + format => '', + read_only => '', + }, }); __PACKAGE__->swagger_types( { - 'name' => 'int' + 'name' => 'int', + 'snake_case' => 'int' } ); __PACKAGE__->attribute_map( { - 'name' => 'name' + 'name' => 'name', + 'snake_case' => 'snake_case' } ); __PACKAGE__->mk_accessors(keys %{__PACKAGE__->attribute_map}); diff --git a/samples/client/petstore/perl/lib/WWW/SwaggerClient/Role.pm b/samples/client/petstore/perl/lib/WWW/SwaggerClient/Role.pm index 3f09db6f1d5..8a6f1c691da 100644 --- a/samples/client/petstore/perl/lib/WWW/SwaggerClient/Role.pm +++ b/samples/client/petstore/perl/lib/WWW/SwaggerClient/Role.pm @@ -37,7 +37,7 @@ has version_info => ( is => 'ro', default => sub { { app_name => 'Swagger Petstore', app_version => '1.0.0', - generated_date => '2016-03-17T15:41:15.325+08:00', + generated_date => '2016-03-19T16:35:29.283+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-17T15:41:15.325+08:00 +=item Build date: 2016-03-19T16:35:29.283+08:00 =item Build package: class io.swagger.codegen.languages.PerlClientCodegen From b1cde113825ea97c3c82e51bc898b13c3e29a554 Mon Sep 17 00:00:00 2001 From: wing328 Date: Sat, 19 Mar 2016 17:46:28 +0800 Subject: [PATCH 2/2] update readme with better app description --- .../src/main/resources/perl/README.mustache | 12 ++++++++---- samples/client/petstore/perl/README.md | 11 ++++++----- .../petstore/perl/lib/WWW/SwaggerClient/Role.pm | 4 ++-- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/perl/README.mustache b/modules/swagger-codegen/src/main/resources/perl/README.mustache index 9cca4b34470..185859ec4a3 100644 --- a/modules/swagger-codegen/src/main/resources/perl/README.mustache +++ b/modules/swagger-codegen/src/main/resources/perl/README.mustache @@ -1,16 +1,20 @@ # NAME -{{moduleName}}::Role - a Moose role for the {{appName}} +{{moduleName}}::Role - a Moose role for the {{appName}} -## {{appName}} version: {{appVersion}} +{{#appDescription}}{{{appDescription}}}{{/appDescription}} # VERSION -Automatically generated by the Perl Swagger Codegen project: +Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: +- API verion: {{appVersion}} +- Package version: {{moduleVersion}} - Build date: {{generatedDate}} - Build package: {{generatorClass}} -- Codegen version: +{{#infoUrl}} +For more information, please visit [{{{infoUrl}}}]({{{infoUrl}}}) +{{/infoUrl}} ## A note on Moose diff --git a/samples/client/petstore/perl/README.md b/samples/client/petstore/perl/README.md index 63e3d3af90e..138e62684ab 100644 --- a/samples/client/petstore/perl/README.md +++ b/samples/client/petstore/perl/README.md @@ -1,16 +1,17 @@ # NAME -WWW::SwaggerClient::Role - a Moose role for the Swagger Petstore +WWW::SwaggerClient::Role - a Moose role for the Swagger Petstore -## Swagger Petstore version: 1.0.0 +This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters # VERSION -Automatically generated by the Perl Swagger Codegen project: +Automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- Build date: 2016-03-19T16:35:29.283+08:00 +- API verion: 1.0.0 +- Package version: 1.0.0 +- Build date: 2016-03-19T17:46:21.048+08:00 - Build package: class io.swagger.codegen.languages.PerlClientCodegen -- Codegen version: ## A note on Moose diff --git a/samples/client/petstore/perl/lib/WWW/SwaggerClient/Role.pm b/samples/client/petstore/perl/lib/WWW/SwaggerClient/Role.pm index 8a6f1c691da..15fb410e8a5 100644 --- a/samples/client/petstore/perl/lib/WWW/SwaggerClient/Role.pm +++ b/samples/client/petstore/perl/lib/WWW/SwaggerClient/Role.pm @@ -37,7 +37,7 @@ has version_info => ( is => 'ro', default => sub { { app_name => 'Swagger Petstore', app_version => '1.0.0', - generated_date => '2016-03-19T16:35:29.283+08:00', + generated_date => '2016-03-19T17:46:21.048+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-19T16:35:29.283+08:00 +=item Build date: 2016-03-19T17:46:21.048+08:00 =item Build package: class io.swagger.codegen.languages.PerlClientCodegen