-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathplaylistai-plugin.vercel.app.json
81 lines (81 loc) · 2.42 KB
/
playlistai-plugin.vercel.app.json
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"openapi": "3.0.0",
"info": {
"title": "PlaylistAI",
"version": "1.0.0"
},
"paths": {
"/api/playlist": {
"get": {
"summary": "Create a spotify music playlist",
"operationId": "checkGET",
"parameters": [
{
"name": "songNames",
"in": "query",
"required": true,
"description": "Comma separated list of song and artist names in this format: <song name> - <artist name>",
"schema": {
"type": "string"
}
},
{
"name": "title",
"in": "query",
"required": true,
"description": "A suggested title for the playlist",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "The new playlist url",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"playlistUrl": {
"type": "string",
"description": "The url of the playlist"
}
}
}
}
}
},
"429": {
"description": "The user exceeded the number of playlists that they can create for free.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"stripeUrl": {
"type": "string",
"description": "The url to go to to purchase unlimited playlists"
},
"supportEmail": {
"type": "string",
"description": "The support email that the user can contact for help or questions"
},
"helpUrl": {
"type": "string",
"description": "The url that the user can visit for help with their subscription or any issues."
},
"message": {
"type": "string",
"description": "A message that should be read to the user"
}
}
}
}
}
}
}
}
}
}
}