add http files

This commit is contained in:
2025-07-25 00:57:05 +02:00
committed by swordsteel
parent 97991f243f
commit 203150749d
28 changed files with 326 additions and 6 deletions

View File

@@ -0,0 +1,2 @@
### get actuator
GET {{hostname}}/actuator

View File

@@ -0,0 +1,10 @@
### register device for a type
POST {{hostname}}/device
Content-Type: application/json
{
"type": "00000000-0000-0000-0000-000000000000"
}
### register device for a type
GET {{hostname}}/device-00000000-0000-0000-0000-000000000000

View File

@@ -0,0 +1,11 @@
{
"development": {
"hostname": "http://localhost:8080"
},
"docker": {
"hostname": "http://localhost:9050"
},
"testing": {
"hostname": "http://10.0.x.x"
}
}

View File

@@ -0,0 +1,2 @@
### get identity
GET {{hostname}}/identity/device-00000000-0000-0000-0000-000000000001

View File

@@ -0,0 +1,9 @@
### register node for a client and device with name
POST {{hostname}}/node
Content-Type: application/json
{
"client": "00000000-0000-0000-0000-000000000000",
"device": "01983d72-476e-77ab-9b17-5ba7045b15fa",
"name": "my test device"
}

View File

@@ -0,0 +1,20 @@
### add type
POST {{hostname}}/type
Content-Type: application/json
{
"name": "Test Device 001",
"description": "Description of test device."
}
### get type by id
GET {{hostname}}/type-00000000-0000-0000-0000-000000000000
### update type by id
PUT {{hostname}}/type-00000000-0000-0000-0000-000000000000
Content-Type: application/json
{
"name": "Test Device 001",
"description": "Description of test device."
}

View File

@@ -0,0 +1,17 @@
### get all types
GET {{hostname}}/types
### get all types
GET {{hostname}}/types/page-1
### get all types
GET {{hostname}}/types/page-1/show-2
### get all types
GET {{hostname}}/types/filter-{filter}
### get all types
GET {{hostname}}/types/filter-{filter}/page-1
### get all types
GET {{hostname}}/types/filter-{filter}/page-1/show-2