-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
43 lines (43 loc) · 1.25 KB
/
openapi.yaml
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
openapi: 3.0.1
info:
title: Music Player Plugin
description: A plugin that allows the user to play music using ChatGPT.".
version: "v1"
servers:
- url: PLUGIN_HOSTNAME
paths:
/music/list:
get:
operationId: getSongs
summary: Get the list of available songs
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/getSongsResponse"
/music/play/{songTitle}:
get:
operationId: playSong
summary: Play a song
parameters:
- in: path
name: songTitle
schema:
type: string
required: true
description: The title of the song to play
responses:
"200":
description: OK
components:
schemas:
getSongsResponse:
type: object
properties:
todos:
type: array
items:
type: string
description: The list of songs.