Playlist
A playlist links multiple Events together to form a playlist of content.
Playlist Object
{
"id": "88cf8bc0-3d85-4fa1-b31f-c3e46ed57b6d",
"name": "Example Playlist"
}
Playlist Item Object
{
"id": "8532b0a8-81f4-4fa0-956d-d86ad5b55860",
"playlistId": "0eab27a8-e38d-4232-9e82-920154ea9c77",
"eventId": "b4cf63f6-5d34-4647-8291-9204466c1800",
"startTime": "2018-09-27T06:25:41Z"
}
Supported Actions
POST /playlist/
Add a Playlist.
Request Body:
{
"name": "Example Playlist"
}
Response: 200 OK
PUT /playlist/{id}
Update a Playlist by Id.
Request Body:
{
"Name": "Example Playlist"
}
Response: 200 OK
GET /playlist/
Get all Playlists.
Response:
200 OK
and JSON containing multiple Playlist objects.
or
204 No Content
if no Playlists exist.
GET /playlist/{id}
Get Playlist by Id.
Response:
200 OK
and JSON containing the Playlist object.
or
204 No Content
if no Playlist exist.
GET /playlist/{id}/playlistItems/
Get the Playlist Items for the given Playlist Id.
Response: 200 OK
and a JSON array containing multiple Playlist Item objects.
DEL /playlist/{id}
Delete a Playlist by Id.
Response: 410 Gone