university-final-iot-backend/app/api/resources/swagger/create_dashboard_widget_spe...

28 lines
534 B
YAML
Raw Normal View History

2018-10-22 21:54:31 +00:00
Creates new dashboard widget
Requires Widget object and creates dashboard
---
tags:
- Dashboard
parameters:
- in: path
name: dashboard_id
required: true
type: integer
description: Id of the owning dashboard
- in: body
name: body
required: true
schema:
type: object
$ref: '#/definitions/WidgetCreation'
responses:
200:
description: Success
schema:
type: object
required:
- content
properties:
content:
$ref: '#/definitions/Widget'