diff --git a/plugins/restapi/doc/doc.php b/plugins/restapi/doc/doc.php
index 98659e8..4d8b8b5 100644
--- a/plugins/restapi/doc/doc.php
+++ b/plugins/restapi/doc/doc.php
@@ -16,100 +16,86 @@ public function addClass($classname)
public function output()
{
- $this->header();
+ $output = $this->header();
foreach ($this->classes as $class) {
$reflect = new \ReflectionClass($class);
$methods = $reflect->getMethods();
foreach ($methods as $method) {
if (Common::method_allowed($reflect->getShortName(),$method->name)) {
- echo ''.$reflect->getShortName().'
';
- echo ''.$method->name.'
';
- echo ''.$reflect->getShortName().'
';
+ $output .= ''.$method->name.'
';
+ $output .= '
', '', $comment );
- echo trim($comment);
+ $output .= trim($comment);
- echo '
';
- echo '
';
+ $output .= '
+ return '
Documentation generated
+Documentation generated '. date('Y-m-d H:i:s').' +
- Required body parameter
- Optional body parameter
- Datatype
+ Required body parameter
+ Optional body parameter
+ Datatype