From a799ff5956141e25e7db34ebada7605aac214276 Mon Sep 17 00:00:00 2001 From: Asaf Jortilles Date: Thu, 2 May 2024 17:21:43 +0200 Subject: [PATCH] get dashboard/{id} --- .../lib/module/dashboard/dashboard.router.ts | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/eda/eda_api/lib/module/dashboard/dashboard.router.ts b/eda/eda_api/lib/module/dashboard/dashboard.router.ts index 140bd045..d3854e20 100644 --- a/eda/eda_api/lib/module/dashboard/dashboard.router.ts +++ b/eda/eda_api/lib/module/dashboard/dashboard.router.ts @@ -26,7 +26,7 @@ const router = express.Router(); * description: dashboard external tags * responses: * 200: - * description: retrns all dashboards + * description: returns all dashboards * 400: * description: returns error to load dashboards * tags: @@ -38,9 +38,23 @@ router.post('/clean-refresh', authGuard, DashboardController.cleanDashboardCache /** * @openapi - * /dashboard/:id: + * /dashboard/{id}: * get: - * description: returns dashboard by parametro + * description: returns dashboard by parameter + * parameters: + * - in: query + * name: token + * required: true + * description: authorization token + * - in: path + * name: id + * required: true + * description: dashboard id + * - in: query + * name: properties + * type: object + * required: false + * description: dashboard custom properties * responses: * 200: * description: returns dashboard @@ -175,16 +189,6 @@ router.post('', authGuard, DashboardController.create); * /dashboard/query: * post: * description: execute the query of the panel -* parameters: -* - in: query -* name: token -* required: true -* description: authorization token -* - in: query -* name: properties -* type: object -* required: false -* description: properties tags JSON * responses: * 200: * description: returns ok