forked from loafle/openapi-generator-original
- added POD to Role.pm - added README.md files translated from Role.pm POD - added an autodoc script (based on AutoDoc.pm role). The script prints a listing of the methods built in Role.pm - added class_documentation() and method_documentation() accessors on all object and API classes which return the documentation supplied in the Swagger spec for the API
20 lines
306 B
Perl
20 lines
306 B
Perl
#!/usr/bin/perl
|
|
package MyAutodoc;
|
|
use FindBin;
|
|
use File::Spec;
|
|
use lib File::Spec->catdir($FindBin::Bin, '..', 'lib');
|
|
|
|
use Moose;
|
|
|
|
with ('WWW::SwaggerClient::Role', 'WWW::SwaggerClient::Role::AutoDoc');
|
|
|
|
sub auth_setup_handler {}
|
|
|
|
package main;
|
|
|
|
my $api = MyAutodoc->new;
|
|
|
|
print $api->autodoc;
|
|
|
|
exit(0);
|