mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-20 07:40:51 +00:00
- 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
308 B
Plaintext
20 lines
308 B
Plaintext
#!/usr/bin/perl
|
|
package MyAutodoc;
|
|
use FindBin;
|
|
use File::Spec;
|
|
use lib File::Spec->catdir($FindBin::Bin, '..', 'lib');
|
|
|
|
use Moose;
|
|
|
|
with ('WWW::{{moduleName}}::Role', 'WWW::{{moduleName}}::Role::AutoDoc');
|
|
|
|
sub auth_setup_handler {}
|
|
|
|
package main;
|
|
|
|
my $api = MyAutodoc->new;
|
|
|
|
print $api->autodoc;
|
|
|
|
exit(0);
|