William Cheng 1efeb92f6b
Migrate Perl samples to use OAS v3 spec (#6490)
* update perl samples to use oas3

* test perl in travis ci

* fix uri query

* fix comment

* fix bearer token

* fix add pet

* update body to pet
2020-05-30 17:00:22 +08:00

1.5 KiB

WWW::OpenAPIClient::AnotherFakeApi

Load the API package

use WWW::OpenAPIClient::Object::AnotherFakeApi;

All URIs are relative to http://petstore.swagger.io:80/v2

Method HTTP request Description
call_123_test_special_tags PATCH /another-fake/dummy To test special tags

call_123_test_special_tags

Client call_123_test_special_tags(client => $client)

To test special tags

To test special tags and operation ID starting with number

Example

use Data::Dumper;
use WWW::OpenAPIClient::AnotherFakeApi;
my $api_instance = WWW::OpenAPIClient::AnotherFakeApi->new(
);

my $client = WWW::OpenAPIClient::Object::Client->new(); # Client | client model

eval { 
    my $result = $api_instance->call_123_test_special_tags(client => $client);
    print Dumper($result);
};
if ($@) {
    warn "Exception when calling AnotherFakeApi->call_123_test_special_tags: $@\n";
}

Parameters

Name Type Description Notes
client Client client model

Return type

Client

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]