feat: implement episode actions add endpoint
This commit is contained in:
parent
064365fb4f
commit
bcfb8805eb
13 changed files with 152 additions and 63 deletions
|
|
@ -12,7 +12,7 @@ post {
|
|||
|
||||
params:path {
|
||||
user: test
|
||||
device_id: test4.json
|
||||
device_id: test_device.json
|
||||
}
|
||||
|
||||
body:json {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue