swagger-docs/input.yml

46 lines
1.1 KiB
YAML
Raw Normal View History

2020-03-17 17:12:50 +01:00
openapi: 3.0.0
info:
title: Input endpoint of system
version: 1.0.0
servers:
- url: https://dev.k8s.tcloud.enginner/api/input/v1
paths:
/sample:
post:
summary: Upload sound file into the system
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
id:
2020-03-20 20:05:56 +01:00
type: opect
properties:
date:
type: string
format: date
device_id:
type: string
2020-03-17 17:12:50 +01:00
soundFile:
type: string
format: binary
responses:
'200':
description: Status message
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Response'
components:
schemas:
Response:
properties:
status:
type: string
description: "Status message from backend."
required:
2020-03-20 20:05:56 +01:00
- status