feat: implement episode actions add endpoint

This commit is contained in:
Jef Roosens 2025-03-04 09:47:13 +01:00
parent 064365fb4f
commit bcfb8805eb
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
13 changed files with 152 additions and 63 deletions

View file

@ -6,10 +6,30 @@ meta {
post {
url: http://localhost:8080/api/2/episodes/:username
body: none
auth: none
body: json
auth: inherit
}
params:path {
username:
username: test.json
}
body:json {
[
{
"podcast": "http://example.com/feed.rss",
"episode": "http://example.com/files/s01e20.mp3",
"device": "test_device",
"action": "download",
"timestamp": "2009-12-12T09:00:00"
},
{
"podcast": "http://example.org/podcast.php",
"episode": "http://ftp.example.org/foo.ogg",
"action": "play",
"started": 15,
"position": 120,
"total": 500
}
]
}