university-final-iot-backend/app/api/resources/swagger/create_device_spec.yaml

23 lines
411 B
YAML

Creates new device
Requires Device object and creates device
---
tags:
- Device
parameters:
- in: body
name: body
required: true
schema:
type: object
$ref: '#/definitions/DeviceCreation'
responses:
201:
description: Success
schema:
type: object
required:
- content
properties:
content:
$ref: '#/definitions/DeviceWithConfig'