From c2d45cb1728e2191e51424734e74cb2a56b323b0 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Tue, 19 Sep 2023 14:12:17 +0200 Subject: Add single status code descriptions for OpenAPI Signed-off-by: jld3103 --- apps/dashboard/lib/Controller/DashboardApiController.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/dashboard/lib/Controller') diff --git a/apps/dashboard/lib/Controller/DashboardApiController.php b/apps/dashboard/lib/Controller/DashboardApiController.php index e50ab974dfc..e62c21bcc4a 100644 --- a/apps/dashboard/lib/Controller/DashboardApiController.php +++ b/apps/dashboard/lib/Controller/DashboardApiController.php @@ -104,6 +104,8 @@ class DashboardApiController extends OCSController { * @param int $limit Limit number of result items per widget * @param string[] $widgets Limit results to specific widgets * @return DataResponse, array{}> + * + * 200: Widget items returned */ public function getWidgetItems(array $sinceIds = [], int $limit = 7, array $widgets = []): DataResponse { $items = []; @@ -129,6 +131,8 @@ class DashboardApiController extends OCSController { * @param int $limit Limit number of result items per widget * @param string[] $widgets Limit results to specific widgets * @return DataResponse, array{}> + * + * 200: Widget items returned */ public function getWidgetItemsV2(array $sinceIds = [], int $limit = 7, array $widgets = []): DataResponse { $items = []; @@ -151,6 +155,8 @@ class DashboardApiController extends OCSController { * @NoCSRFRequired * * @return DataResponse, array{}> + * + * 200: Widgets returned */ public function getWidgets(): DataResponse { $widgets = $this->dashboardManager->getWidgets(); -- cgit v1.2.3