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:
Dave Baird
2015-11-09 23:04:59 +01:00
parent 49034946a0
commit c06af6d141
11 changed files with 1015 additions and 5 deletions

View File

@@ -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}},
};