Skip to content

Commit

Permalink
Added the description in endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed May 13, 2021
1 parent d35c9a7 commit 9e05c81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions util/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,12 +436,13 @@ public function getClassName(): string

public function renderDocParams(): string
{
if (!isset($this->content['params']) && empty($this->getParts())) {
return '';
}
$space = $this->getMaxLengthBodyPartsParams();

$result = "\n /**\n";
if (isset($this->content['documentation']['description'])) {
$result .= " * {$this->content['documentation']['description']}\n";
$result .= " *\n";
}
$result .= $this->extractPartsDescription($space);
$result .= $this->extractParamsDescription($space);
$result .= $this->extractBodyDescription($space);
Expand Down

0 comments on commit 9e05c81

Please sign in to comment.