Update recording creation swagger doc

master
esensar 2018-09-23 18:44:32 +02:00
parent 758b12621a
commit 8d05ed2a41
2 changed files with 24 additions and 3 deletions

View File

@ -13,7 +13,7 @@ parameters:
name: body
required: true
schema:
$ref: '#/definitions/Recording'
$ref: '#/definitions/RecordingCreation'
responses:
201:
description: Successful creation

View File

@ -26,6 +26,11 @@ definitions:
type: string
description: Time
timestamp:
type: integer
description: Time
default: 1537720769
devicetypename:
type: string
description: Name of device type
@ -37,7 +42,7 @@ definitions:
default: My device
devicetype:
type: int
type: integer
description: Type of device
default: 1
@ -128,6 +133,22 @@ definitions:
description: Value of the recording
default: '25 degrees'
RecordingCreation:
type: object
required:
- recorded_at
- record_type
- record_value
properties:
recorded_at:
$ref: '#/definitions/timestamp'
record_type:
$ref: '#/definitions/id'
record_value:
type: string
description: Value of the recording
default: '25 degrees'
DeviceType:
type: object
required:
@ -250,5 +271,5 @@ security:
info:
description: Python (Flask) backend for IoT sysyem made for master's degree final project
title: IoT Backend
version: 0.0.1
version: 0.1.0
swagger: '2.0'