Add 'extractor.yaml'
This commit is contained in:
parent
f1a253c8d8
commit
9c1b394873
50
extractor.yaml
Normal file
50
extractor.yaml
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
openapi: 3.0.0
|
||||||
|
info:
|
||||||
|
title: Sound feature extraction
|
||||||
|
version: 1.0.0
|
||||||
|
servers:
|
||||||
|
- url: https://dev.k8s.tcloud.enginner/api/storage/v2
|
||||||
|
paths:
|
||||||
|
/sample:
|
||||||
|
post:
|
||||||
|
summary: Upload sound file for feature extraction
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: string
|
||||||
|
format: json
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/TagString'
|
||||||
|
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
|
||||||
|
TagString:
|
||||||
|
properties:
|
||||||
|
tag:
|
||||||
|
type: string
|
||||||
|
description: "Tag of sound file"
|
||||||
|
required:
|
||||||
|
- tag
|
Loading…
Reference in New Issue
Block a user