From 7d26d9dc5ade509b5811a159883ce456348b4c17 Mon Sep 17 00:00:00 2001 From: esensar Date: Sun, 23 Sep 2018 14:07:36 +0200 Subject: [PATCH] Fix dashboard creation swagger doc --- app/api/resources/swagger/create_dashboard_spec.yaml | 2 +- app/swagger/template.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/resources/swagger/create_dashboard_spec.yaml b/app/api/resources/swagger/create_dashboard_spec.yaml index 65abc44..6314787 100644 --- a/app/api/resources/swagger/create_dashboard_spec.yaml +++ b/app/api/resources/swagger/create_dashboard_spec.yaml @@ -12,7 +12,7 @@ parameters: required: - dashboard properties: - device: + dashboard: $ref: '#/definitions/DashboardCreation' responses: 201: diff --git a/app/swagger/template.yaml b/app/swagger/template.yaml index e97a4fb..86d1393 100644 --- a/app/swagger/template.yaml +++ b/app/swagger/template.yaml @@ -67,7 +67,7 @@ definitions: default: {} dashboarddata: - type: string + type: object description: Dashboard data default: {}