feat: migrate devices api to repository

This commit is contained in:
Jef Roosens 2025-02-27 22:08:49 +01:00
parent 952f92c178
commit a2233d9da8
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
8 changed files with 206 additions and 50 deletions

View 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
}

View 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"}
}