swagger-docs/extractor.yaml
2020-03-24 17:19:58 +01:00

43 lines
1.0 KiB
YAML

openapi: 3.0.0
info:
title: Sound feature extraction
version: 1.0.1
servers:
- url: https://dev.k8s.tcloud.enginner/api/extractor/v1
paths:
/sample:
post:
summary: Upload sound file for feature extraction
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
id:
type: object
properties:
tag:
type: string
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