=begin comment Swagger Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ OpenAPI spec version: 1.0.0 Contact: apiteam@swagger.io Generated by: https://github.com/swagger-api/swagger-codegen.git =end comment =cut # # NOTE: This class is auto generated by Swagger Codegen # Please update the test cases below to test the API endpoints. # Ref: https://github.com/swagger-api/swagger-codegen # use Test::More tests => 1; #TODO update number of test cases use Test::Exception; use lib 'lib'; use strict; use warnings; use_ok('WWW::OpenAPIClient::PetApi'); my $api = WWW::OpenAPIClient::PetApi->new(); isa_ok($api, 'WWW::OpenAPIClient::PetApi'); # # add_pet test # { my $body = undef; # replace NULL with a proper value my $result = $api->add_pet(body => $body); } # # delete_pet test # { my $pet_id = undef; # replace NULL with a proper value my $api_key = undef; # replace NULL with a proper value my $result = $api->delete_pet(pet_id => $pet_id, api_key => $api_key); } # # find_pets_by_status test # { my $status = undef; # replace NULL with a proper value my $result = $api->find_pets_by_status(status => $status); } # # find_pets_by_tags test # { my $tags = undef; # replace NULL with a proper value my $result = $api->find_pets_by_tags(tags => $tags); } # # get_pet_by_id test # { my $pet_id = undef; # replace NULL with a proper value my $result = $api->get_pet_by_id(pet_id => $pet_id); } # # update_pet test # { my $body = undef; # replace NULL with a proper value my $result = $api->update_pet(body => $body); } # # update_pet_with_form test # { my $pet_id = undef; # replace NULL with a proper value my $name = undef; # replace NULL with a proper value my $status = undef; # replace NULL with a proper value my $result = $api->update_pet_with_form(pet_id => $pet_id, name => $name, status => $status); } # # upload_file test # { my $pet_id = undef; # replace NULL with a proper value my $additional_metadata = undef; # replace NULL with a proper value my $file = undef; # replace NULL with a proper value my $result = $api->upload_file(pet_id => $pet_id, additional_metadata => $additional_metadata, file => $file); } 1;