redo
This commit is contained in:
parent
4824cd8ef9
commit
e104a66b16
@ -1,43 +1,55 @@
|
|||||||
openapi: 3.0.0
|
swagger: "2.0"
|
||||||
info:
|
info:
|
||||||
title: Sound feature extraction
|
description: "This is the feature extraction interface of the Birbnetes system."
|
||||||
version: 1.0.1
|
version: "1.0.5"
|
||||||
servers:
|
title: "Extractor Service"
|
||||||
- url: https://dev.k8s.tcloud.enginner/api/extractor/v1
|
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"
|
||||||
paths:
|
paths:
|
||||||
/sample:
|
/audo:
|
||||||
post:
|
post:
|
||||||
summary: Upload sound file for feature extraction
|
tags:
|
||||||
requestBody:
|
- "extractor"
|
||||||
content:
|
summary: "uploads a sample into the system"
|
||||||
multipart/form-data:
|
description: ""
|
||||||
schema:
|
operationId: "uploadFile"
|
||||||
type: object
|
consumes:
|
||||||
properties:
|
- "multipart/form-data"
|
||||||
id:
|
produces:
|
||||||
type: object
|
- "application/json"
|
||||||
properties:
|
parameters:
|
||||||
tag:
|
- name: "tag"
|
||||||
type: string
|
in: "formData"
|
||||||
soundFile:
|
description: "Tag of sound file"
|
||||||
type: string
|
required: true
|
||||||
format: binary
|
type: "string"
|
||||||
|
- name: "file"
|
||||||
|
in: "formData"
|
||||||
|
description: "Wave file to upload"
|
||||||
|
required: true
|
||||||
|
type: "file"
|
||||||
responses:
|
responses:
|
||||||
'200':
|
200:
|
||||||
description: Status message
|
description: "successful operation"
|
||||||
content:
|
schema:
|
||||||
application/json:
|
$ref: "#/definitions/ApiResponse"
|
||||||
schema:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/components/schemas/Response'
|
|
||||||
|
|
||||||
components:
|
definitions:
|
||||||
schemas:
|
ApiResponse:
|
||||||
Response:
|
type: "object"
|
||||||
properties:
|
properties:
|
||||||
status:
|
status:
|
||||||
type: string
|
type: "string"
|
||||||
description: "Status message from backend."
|
message:
|
||||||
required:
|
type: "string"
|
||||||
- status
|
|
Loading…
Reference in New Issue
Block a user