From 9bc98ecd1c8189fb0b5ea5ed6fc22d78e5c878d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 17 Mar 2020 17:12:50 +0100 Subject: [PATCH] Add 'input.yml' --- input.yml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 input.yml diff --git a/input.yml b/input.yml new file mode 100644 index 0000000..f7b2578 --- /dev/null +++ b/input.yml @@ -0,0 +1,55 @@ +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: + type: string + format: json + items: + $ref: '#/components/schemas/DateDevice' + 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: + - status + DateDevice: + properties: + date: + type: string + format: date + description: "Date of upload" + device_id: + type: string + description: "ID of device" + required: + - date + - device_id \ No newline at end of file