-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
50 lines (46 loc) · 1.23 KB
/
openapi.yaml
File metadata and controls
50 lines (46 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
openapi: 3.0.0
info:
title: Audio Waveform Service API
description: Service to dynamically produce waveforms for the stems player
version: 1.0.0
servers:
- url: https://api.example.com/v1
description: An example endpoint
paths:
/waveform:
get:
summary: Gets a waveform as json data
description: Gets waveform data based on a audio file provided by a URL
operationId: getM3u8
parameters:
- in: query
name: sourceUrl
required: true
schema:
type: url
example: https://abcdefg01234.cloudfront.net/drums-wav
responses:
'200':
description: Success
content:
application/json:
schema:
type: string
example: >
{
"version": 2,
"channels": 1,
"sample_rate": 44100,
"samples_per_pixel": 2205,
"bits": 16,
"length": 5018,
"data": [-0.02,-0.02,-0.02,-0.02]
}
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
security:
- bearerAuth: []