swagger-docs/input.yml

74 lines
1.7 KiB
YAML
Raw Normal View History

2020-03-27 23:31:23 +01:00
swagger: "2.0"
2020-03-17 17:12:50 +01:00
info:
2020-03-27 23:31:23 +01:00
description: "This s the input interface of the Birbnetes system."
version: "1.0.10"
title: "Input Service"
contact:
email: "tormakristof@tormakristof.eu"
license:
name: "Apache 2.0"
url: "http://www.apache.org/licenses/LICENSE-2.0.html"
host: "dev.k8s.tcloud.enginner"
basePath: "/api/input/v1"
tags:
- name: "input"
description: "Input Service interaction"
schemes:
- "https"
- "http"
2020-03-17 17:12:50 +01:00
paths:
/sample:
post:
2020-03-27 23:31:23 +01:00
tags:
- "input"
summary: "uploads a sample into the system"
description: ""
operationId: "uploadFile"
consumes:
- "multipart/form-data"
produces:
- "application/json"
parameters:
- name: "date"
in: "formData"
description: "Date of recording"
required: true
type: "string"
format: "date"
- name: "device_id"
in: "formData"
description: "ID of recording device"
required: true
type: "integer"
format: "int64"
- name: "file"
in: "formData"
description: "Wave file to upload"
required: true
type: "file"
2020-03-17 17:12:50 +01:00
responses:
2020-03-27 23:31:23 +01:00
200:
description: "successful operation"
schema:
$ref: "#/definitions/ApiResponse"
416:
description: "Media type error"
schema:
$ref: "#/definitions/ApiResponse"
400:
description: "JSON parse error"
schema:
$ref: "#/definitions/ApiResponse"
444:
description: "JSON invalid schema"
schema:
$ref: "#/definitions/ApiResponse"
2020-03-17 17:12:50 +01:00
2020-03-27 23:31:23 +01:00
definitions:
ApiResponse:
type: "object"
properties:
status:
type: "string"
message:
type: "string"