swagger-docs/extractor.yaml

55 lines
1.2 KiB
YAML
Raw Normal View History

2020-03-28 00:30:33 +01:00
swagger: "2.0"
2020-03-17 16:53:00 +01:00
info:
2020-03-28 00:30:33 +01:00
description: "This is the feature extraction interface of the Birbnetes system."
version: "1.0.5"
title: "Extractor 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/extractor/v1"
tags:
- name: "extractor"
description: "Extractor Service interaction"
schemes:
- "https"
- "http"
2020-03-17 16:53:00 +01:00
paths:
2020-03-28 00:30:33 +01:00
/audo:
2020-03-17 16:53:00 +01:00
post:
2020-03-28 00:30:33 +01:00
tags:
- "extractor"
summary: "uploads a sample into the system"
description: ""
operationId: "uploadFile"
consumes:
- "multipart/form-data"
produces:
- "application/json"
parameters:
- name: "tag"
in: "formData"
description: "Tag of sound file"
required: true
type: "string"
- name: "file"
in: "formData"
description: "Wave file to upload"
required: true
type: "file"
2020-03-17 16:53:00 +01:00
responses:
2020-03-28 00:30:33 +01:00
200:
description: "successful operation"
schema:
$ref: "#/definitions/ApiResponse"
2020-03-17 16:53:00 +01:00
2020-03-28 00:30:33 +01:00
definitions:
ApiResponse:
type: "object"
properties:
status:
type: "string"
message:
type: "string"