doc: started Bruno collection for requests
This commit is contained in:
parent
7db6ebf213
commit
2f0fe08f4c
6 changed files with 90 additions and 0 deletions
16
bruno/Subscriptions API/Get Subscriptions for device.bru
Normal file
16
bruno/Subscriptions API/Get Subscriptions for device.bru
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
meta {
|
||||
name: Get Subscriptions for device
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
get {
|
||||
url: http://localhost:8080/subscriptions/:user/:device_id
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
user: test
|
||||
device_id: device_one.json
|
||||
}
|
||||
15
bruno/Subscriptions API/Get subscriptions for user.bru
Normal file
15
bruno/Subscriptions API/Get subscriptions for user.bru
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
meta {
|
||||
name: Get subscriptions for user
|
||||
type: http
|
||||
seq: 3
|
||||
}
|
||||
|
||||
get {
|
||||
url: http://localhost:8080/subscriptions/:user
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
user: test.json
|
||||
}
|
||||
25
bruno/Subscriptions API/Upload subscriptions for device.bru
Normal file
25
bruno/Subscriptions API/Upload subscriptions for device.bru
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
meta {
|
||||
name: Upload subscriptions for device
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
put {
|
||||
url: http://localhost:8080/subscriptions/:user/:device_id
|
||||
body: json
|
||||
auth: basic
|
||||
}
|
||||
|
||||
params:path {
|
||||
device_id: device_one.json
|
||||
user: test
|
||||
}
|
||||
|
||||
auth:basic {
|
||||
username: test
|
||||
password: test
|
||||
}
|
||||
|
||||
body:json {
|
||||
["https://example1.com", "https://example2.com"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue