feat: implement subscription changes GET request
This commit is contained in:
parent
c50e24089e
commit
d866d23efa
5 changed files with 116 additions and 8 deletions
|
|
@ -0,0 +1,20 @@
|
|||
meta {
|
||||
name: Get subscriptions changes for device
|
||||
type: http
|
||||
seq: 5
|
||||
}
|
||||
|
||||
get {
|
||||
url: http://localhost:8080/api/2/subscriptions/:username/:device_id?since=1740430923
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:query {
|
||||
since: 1740430923
|
||||
}
|
||||
|
||||
params:path {
|
||||
username: test
|
||||
device_id: test.json
|
||||
}
|
||||
|
|
@ -4,13 +4,20 @@ meta {
|
|||
seq: 4
|
||||
}
|
||||
|
||||
get {
|
||||
post {
|
||||
url: http://localhost:8080/api/2/subscriptions/:username/:device_id
|
||||
body: none
|
||||
auth: none
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
username:
|
||||
device_id:
|
||||
username: test
|
||||
device_id: test.json
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"add": ["test_add_1"],
|
||||
"remove": ["test_remove_1", "test_add_2"]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue