add http files
This commit is contained in:
2
http/device-registry/actuator.http
Normal file
2
http/device-registry/actuator.http
Normal file
@@ -0,0 +1,2 @@
|
||||
### get actuator
|
||||
GET {{hostname}}/actuator
|
||||
10
http/device-registry/device.http
Normal file
10
http/device-registry/device.http
Normal 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
|
||||
11
http/device-registry/http-client.env.json-dev
Normal file
11
http/device-registry/http-client.env.json-dev
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"development": {
|
||||
"hostname": "http://localhost:8080"
|
||||
},
|
||||
"docker": {
|
||||
"hostname": "http://localhost:9050"
|
||||
},
|
||||
"testing": {
|
||||
"hostname": "http://10.0.x.x"
|
||||
}
|
||||
}
|
||||
2
http/device-registry/identity.http
Normal file
2
http/device-registry/identity.http
Normal file
@@ -0,0 +1,2 @@
|
||||
### get identity
|
||||
GET {{hostname}}/identity/device-00000000-0000-0000-0000-000000000001
|
||||
9
http/device-registry/node.http
Normal file
9
http/device-registry/node.http
Normal 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"
|
||||
}
|
||||
20
http/device-registry/type.http
Normal file
20
http/device-registry/type.http
Normal 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."
|
||||
}
|
||||
17
http/device-registry/types.http
Normal file
17
http/device-registry/types.http
Normal 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
|
||||
Reference in New Issue
Block a user