From 9e05c8108b638b60cc676b6a4f4be97c7df9eb64 Mon Sep 17 00:00:00 2001 From: Enrico Zimuel Date: Thu, 13 May 2021 12:59:09 +0200 Subject: [PATCH] Added the description in endpoints --- util/Endpoint.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/util/Endpoint.php b/util/Endpoint.php index 0bf0fe2f5..f39309bf0 100644 --- a/util/Endpoint.php +++ b/util/Endpoint.php @@ -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);