feat: migrate devices api to repository
This commit is contained in:
parent
952f92c178
commit
a2233d9da8
8 changed files with 206 additions and 50 deletions
15
bruno/Device API/List devices for user.bru
Normal file
15
bruno/Device API/List devices for user.bru
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
meta {
|
||||
name: List devices for user
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: http://localhost:8080/api/2/devices/:user
|
||||
body: none
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
user: test.json
|
||||
}
|
||||
20
bruno/Device API/Update device data.bru
Normal file
20
bruno/Device API/Update device data.bru
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
meta {
|
||||
name: Update device data
|
||||
type: http
|
||||
seq: 2
|
||||
}
|
||||
|
||||
post {
|
||||
url: http://localhost:8080/api/2/devices/:user/:device_id
|
||||
body: json
|
||||
auth: inherit
|
||||
}
|
||||
|
||||
params:path {
|
||||
user: test
|
||||
device_id: test4.json
|
||||
}
|
||||
|
||||
body:json {
|
||||
{"caption": "ello bruv"}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue