otter/bruno/Episode Actions API/Upload action changes.bru

36 lines
624 B
Plaintext

meta {
name: Upload action changes
type: http
seq: 1
}
post {
url: http://localhost:8080/api/2/episodes/:username
body: json
auth: inherit
}
params:path {
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
}
]
}