forked from loafle/openapi-generator-original
Documentation and automatic documentation
- 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
This commit is contained in:
@@ -73,7 +73,7 @@ sub new {
|
||||
},
|
||||
{{/allParams}}
|
||||
};
|
||||
__PACKAGE__->method_documentation->{ {{{nickname}}} } = { summary => '{{{summary}}}',
|
||||
__PACKAGE__->method_documentation->{ {{nickname}} } = { summary => '{{summary}}',
|
||||
params => $params,
|
||||
returns => {{#returnType}}'{{{returnType}}}'{{/returnType}}{{^returnType}}undef{{/returnType}},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user