-
Notifications
You must be signed in to change notification settings - Fork 2
/
API tests.txt
79 lines (75 loc) · 3.32 KB
/
API tests.txt
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
CREATE TABLE `playlists` (
`name` varchar(32) NOT NULL DEFAULT '',
`filePath` varchar(512) DEFAULT NULL,
`description` varchar(128) DEFAULT NULL,
`redundantTitleThreshold` int(10) unsigned DEFAULT NULL,
`partialTitleDelimiters` varchar(16) DEFAULT NULL,
`redundantArtistThreshold` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
GET http://localhost:3000/api/v1/version
GET http://localhost:3000/api/v1/healthcheck
GET http://localhost:3000/api/v1/management/config
GET http://localhost:3000/api/v1/playlists
HEAD http://localhost:3000/api/v1/playlists
POST http://localhost:3000/api/v1/playlists
{
"name": "sample",
"filePath": "D:\\src\\playgen\\playlists\\johnson-playlist.txt",
"description": "Test entry",
"partialTitleDelimiters": "(,/"
}
OPTIONS http://localhost:3000/api/v1/playlists
GET http://localhost:3000/api/v1/playlists/sample
HEAD http://localhost:3000/api/v1/playlists/sample
PUT http://localhost:3000/api/v1/playlists/sample
{
"name": "sample",
"filePath": "D:\\src\\playgen\\playlists\\retro-playlist.txt",
"description": "Test entry (modified)",
"partialTitleDelimiters": "/(,",
"redundantArtistThreshold": 5
}
PATCH http://localhost:3000/api/v1/playlists/sample
{
"description": "Test entry (modified again)",
"redundantTitleThreshold": 10
}
DELETE http://localhost:3000/api/v1/playlists/sample
OPTIONS http://localhost:3000/api/v1/playlists/sample
GET http://localhost:3000/api/v1/playlists/crimson/songs
HEAD http://localhost:3000/api/v1/playlists/crimson/songs
OPTIONS http://localhost:3000/api/v1/playlists/crimson/songs
GET http://localhost:3000/api/v1/playlists/crimson/songs/2
OPTIONS http://localhost:3000/api/v1/playlists/crimson/songs/2
POST http://localhost:3000/api/v1/playlists/crimson/requests
{
"songIndex": 45
}
GET http://localhost:3000/api/v1/playlists/crimson/requests
HEAD http://localhost:3000/api/v1/playlists/crimson/requests
OPTIONS http://localhost:3000/api/v1/playlists/crimson/requests
GET http://localhost:3000/api/v1/playlists/crimson/requests/2
DELETE http://localhost:3000/api/v1/playlists/crimson/requests/2
GET http://localhost:3000/api/v1/playlists/crimson/nextsong
OPTIONS http://localhost:3000/api/v1/playlists/crimson/nextsong
GET http://localhost:3000/api/v1/playlists/crimson/currentsong
OPTIONS http://localhost:3000/api/v1/playlists/crimson/currentsong
GET http://localhost:3000/api/v1/playlists/crimson/history
HEAD http://localhost:3000/api/v1/playlists/crimson/history
OPTIONS http://localhost:3000/api/v1/playlists/crimson/history
GET http://localhost:3000/api/v1/playlists/crimson/history/2
OPTIONS http://localhost:3000/api/v1/playlists/crimson/history/2
GET http://localhost:3000/api/v1/downloads
HEAD http://localhost:3000/api/v1/downloads
OPTIONS http://localhost:3000/api/v1/downloads
POST http://localhost:3000/api/v1/playlists/crimson/downloads
{
"songIndex": 3
}
GET http://localhost:3000/api/v1/playlists/crimson/downloads
HEAD http://localhost:3000/api/v1/playlists/crimson/downloads
OPTIONS http://localhost:3000/api/v1/playlists/crimson/downloads
GET http://localhost:3000/api/v1/playlists/crimson/downloads/2
OPTIONS http://localhost:3000/api/v1/playlists/crimson/downloads/2
DELETE http://localhost:3000/api/v1/playlists/crimson/downloads/2