-
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.31 KB
/
openapi.yaml
File metadata and controls
50 lines (46 loc) · 1.31 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: HLS Service API
description: A serverless micro-service to transcode audio into HLS format
version: 1.0.0
servers:
- url: https://api.example.com/v1
description: An example endpoint
paths:
/hls:
get:
summary: Generates a m3u8 file given a wav
description: Takes a sourceUrl for a WAV and returns a m3u8 playlist
operationId: getM3u8
parameters:
- in: query
name: sourceUrl
required: true
schema:
type: string
example: https://abcdefg01234.cloudfront.net/drums-wav
responses:
'200':
description: Success
content:
application/x-mpegURL:
schema:
type: string
example: >
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:5
#EXTINF:5.000000,
https://abcdefg01234.cloudfront.net/processed-audio/...
#EXTINF:5.000000,
https://abcdefg01234.cloudfront.net/processed-audio/...
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
security:
- bearerAuth: []