forked from loafle/openapi-generator-original
update perl petstore sample
This commit is contained in:
parent
65d788396b
commit
e27d4577c1
@ -221,12 +221,12 @@ Each of these calls returns a hashref with various useful pieces of information.
|
|||||||
|
|
||||||
To load the API packages:
|
To load the API packages:
|
||||||
```perl
|
```perl
|
||||||
|
use WWW::SwaggerClient::AnotherFakeApi;
|
||||||
use WWW::SwaggerClient::FakeApi;
|
use WWW::SwaggerClient::FakeApi;
|
||||||
use WWW::SwaggerClient::FakeClassnameTags123Api;
|
use WWW::SwaggerClient::FakeClassnameTags123Api;
|
||||||
use WWW::SwaggerClient::PetApi;
|
use WWW::SwaggerClient::PetApi;
|
||||||
use WWW::SwaggerClient::StoreApi;
|
use WWW::SwaggerClient::StoreApi;
|
||||||
use WWW::SwaggerClient::UserApi;
|
use WWW::SwaggerClient::UserApi;
|
||||||
use WWW::SwaggerClient::AnotherfakeApi;
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -279,12 +279,12 @@ use lib 'lib';
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
# load the API package
|
# load the API package
|
||||||
|
use WWW::SwaggerClient::AnotherFakeApi;
|
||||||
use WWW::SwaggerClient::FakeApi;
|
use WWW::SwaggerClient::FakeApi;
|
||||||
use WWW::SwaggerClient::FakeClassnameTags123Api;
|
use WWW::SwaggerClient::FakeClassnameTags123Api;
|
||||||
use WWW::SwaggerClient::PetApi;
|
use WWW::SwaggerClient::PetApi;
|
||||||
use WWW::SwaggerClient::StoreApi;
|
use WWW::SwaggerClient::StoreApi;
|
||||||
use WWW::SwaggerClient::UserApi;
|
use WWW::SwaggerClient::UserApi;
|
||||||
use WWW::SwaggerClient::AnotherfakeApi;
|
|
||||||
|
|
||||||
# load the models
|
# load the models
|
||||||
use WWW::SwaggerClient::Object::AdditionalPropertiesClass;
|
use WWW::SwaggerClient::Object::AdditionalPropertiesClass;
|
||||||
@ -331,14 +331,14 @@ use WWW::SwaggerClient::;
|
|||||||
my $api_instance = WWW::SwaggerClient::->new(
|
my $api_instance = WWW::SwaggerClient::->new(
|
||||||
);
|
);
|
||||||
|
|
||||||
my $body = WWW::SwaggerClient::Object::OuterBoolean->new(); # OuterBoolean | Input boolean as post body
|
my $body = WWW::SwaggerClient::Object::Client->new(); # Client | client model
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
my $result = $api_instance->fake_outer_boolean_serialize(body => $body);
|
my $result = $api_instance->test_special_tags(body => $body);
|
||||||
print Dumper($result);
|
print Dumper($result);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
warn "Exception when calling FakeApi->fake_outer_boolean_serialize: $@\n";
|
warn "Exception when calling AnotherFakeApi->test_special_tags: $@\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -349,6 +349,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
|||||||
|
|
||||||
Class | Method | HTTP request | Description
|
Class | Method | HTTP request | Description
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
|
*AnotherFakeApi* | [**test_special_tags**](docs/AnotherFakeApi.md#test_special_tags) | **PATCH** /another-fake/dummy | To test special tags
|
||||||
*FakeApi* | [**fake_outer_boolean_serialize**](docs/FakeApi.md#fake_outer_boolean_serialize) | **POST** /fake/outer/boolean |
|
*FakeApi* | [**fake_outer_boolean_serialize**](docs/FakeApi.md#fake_outer_boolean_serialize) | **POST** /fake/outer/boolean |
|
||||||
*FakeApi* | [**fake_outer_composite_serialize**](docs/FakeApi.md#fake_outer_composite_serialize) | **POST** /fake/outer/composite |
|
*FakeApi* | [**fake_outer_composite_serialize**](docs/FakeApi.md#fake_outer_composite_serialize) | **POST** /fake/outer/composite |
|
||||||
*FakeApi* | [**fake_outer_number_serialize**](docs/FakeApi.md#fake_outer_number_serialize) | **POST** /fake/outer/number |
|
*FakeApi* | [**fake_outer_number_serialize**](docs/FakeApi.md#fake_outer_number_serialize) | **POST** /fake/outer/number |
|
||||||
@ -378,7 +379,6 @@ Class | Method | HTTP request | Description
|
|||||||
*UserApi* | [**login_user**](docs/UserApi.md#login_user) | **GET** /user/login | Logs user into the system
|
*UserApi* | [**login_user**](docs/UserApi.md#login_user) | **GET** /user/login | Logs user into the system
|
||||||
*UserApi* | [**logout_user**](docs/UserApi.md#logout_user) | **GET** /user/logout | Logs out current logged in user session
|
*UserApi* | [**logout_user**](docs/UserApi.md#logout_user) | **GET** /user/logout | Logs out current logged in user session
|
||||||
*UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PUT** /user/{username} | Updated user
|
*UserApi* | [**update_user**](docs/UserApi.md#update_user) | **PUT** /user/{username} | Updated user
|
||||||
*AnotherfakeApi* | [**test_special_tags**](docs/AnotherfakeApi.md#test_special_tags) | **PATCH** /another-fake/dummy | To test special tags
|
|
||||||
|
|
||||||
|
|
||||||
# DOCUMENTATION FOR MODELS
|
# DOCUMENTATION FOR MODELS
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
# WWW::SwaggerClient::AnotherfakeApi
|
# WWW::SwaggerClient::AnotherFakeApi
|
||||||
|
|
||||||
## Load the API package
|
## Load the API package
|
||||||
```perl
|
```perl
|
||||||
use WWW::SwaggerClient::Object::AnotherfakeApi;
|
use WWW::SwaggerClient::Object::AnotherFakeApi;
|
||||||
```
|
```
|
||||||
|
|
||||||
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||||
|
|
||||||
Method | HTTP request | Description
|
Method | HTTP request | Description
|
||||||
------------- | ------------- | -------------
|
------------- | ------------- | -------------
|
||||||
[**test_special_tags**](AnotherfakeApi.md#test_special_tags) | **PATCH** /another-fake/dummy | To test special tags
|
[**test_special_tags**](AnotherFakeApi.md#test_special_tags) | **PATCH** /another-fake/dummy | To test special tags
|
||||||
|
|
||||||
|
|
||||||
# **test_special_tags**
|
# **test_special_tags**
|
||||||
@ -22,8 +22,8 @@ To test special tags
|
|||||||
### Example
|
### Example
|
||||||
```perl
|
```perl
|
||||||
use Data::Dumper;
|
use Data::Dumper;
|
||||||
use WWW::SwaggerClient::AnotherfakeApi;
|
use WWW::SwaggerClient::AnotherFakeApi;
|
||||||
my $api_instance = WWW::SwaggerClient::AnotherfakeApi->new(
|
my $api_instance = WWW::SwaggerClient::AnotherFakeApi->new(
|
||||||
);
|
);
|
||||||
|
|
||||||
my $body = WWW::SwaggerClient::Object::Client->new(); # Client | client model
|
my $body = WWW::SwaggerClient::Object::Client->new(); # Client | client model
|
||||||
@ -33,7 +33,7 @@ eval {
|
|||||||
print Dumper($result);
|
print Dumper($result);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
warn "Exception when calling AnotherfakeApi->test_special_tags: $@\n";
|
warn "Exception when calling AnotherFakeApi->test_special_tags: $@\n";
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|||||||
# Do not edit the class manually.
|
# Do not edit the class manually.
|
||||||
# Ref: https://github.com/swagger-api/swagger-codegen
|
# Ref: https://github.com/swagger-api/swagger-codegen
|
||||||
#
|
#
|
||||||
package WWW::SwaggerClient::AnotherfakeApi;
|
package WWW::SwaggerClient::AnotherFakeApi;
|
||||||
|
|
||||||
require 5.6.0;
|
require 5.6.0;
|
||||||
use strict;
|
use strict;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user