Wallogit.com
2017 © Pedro Pelรกez
Automatic documentor for APIs
An automatic documentor for APIs., (*1)
Please see 'example' directory for better understanding., (*2)
Data types: * "int" โ creates an input limited to integers * "date" โ creates a date picker * "bool" โ creates a drop down box with "true" and "false" * "enum" โ creates a date down box with alternatives * anything else โ simply generates an text input field, (*3)
Format, (*4)
* @doc-var (int=42) foo! - An obligatory integer named "foo" with default of 42. * @doc-var (string) bar - Just a string named "bar".
Example:, (*5)
{
"input":
{
"dirs":
[
"../../App/Controller"
]
},
"output":
{
"dir": "../../public/docs",
"filename": "index.html",
"rootUrl": "/api"
},
"exclude":
[
"Generic.php",
"Upload.php"
],
"templates":
{
"dir": "templates",
"overwrite": ["header", "footer", "layout"]
}
}
input.dirs โ an array of relative paths to scan for files, (*6)
output.dir โ a relative path to the output directory output.filename โ name of the resulting HTML file output.rootUrl โ a root URL to use in in-page API calls, (*7)
exclude โ a list of files to exclude while scanning, (*8)
templates.dir โ a relative path to the directory with templates replacements templates.overwrite โ a list of templates to overwrite, (*9)