swagger-docs/storage.yml

43 lines
1011 B
YAML
Raw Normal View History

2020-03-17 17:07:51 +01:00
openapi: 3.0.0
info:
title: Sound storage as object
2020-03-20 20:08:25 +01:00
version: 1.0.1
2020-03-17 17:07:51 +01:00
servers:
2020-03-17 17:09:30 +01:00
- url: https://dev.k8s.tcloud.enginner/api/storage/v1
2020-03-17 17:07:51 +01:00
paths:
/object:
post:
summary: Upload sound file for storage
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
id:
2020-03-24 17:20:03 +01:00
type: object
2020-03-20 20:08:06 +01:00
properties:
tag:
type: string
2020-03-17 17:07:51 +01:00
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:
2020-03-20 20:08:06 +01:00
- status