Inter-IoT Gateway API API Reference
Inter-IoT Physical/Virtual Gateway API
Terms of Service: http://www.inter-iot-project.eu/objectives
Contact: coordinator@inter-iot.eu
Request Content-Types: application/json
Response Content-Types: application/json
Schemes: http
Version: 0.3.1-SNAPSHOT-20180426160853
api
Get Api version information
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
device
Read last device state
deviceUid:
string
in path
(no description)
200 OK
successful operation
Response Content-Types: application/json
Response Example (200 OK)
{
"timestamp": "integer (int64)",
"data": [
{
"attribute": {
"name": "string",
"type": "string"
},
"value": "object",
"timestamp": "integer (int64)"
}
]
}
Write state to device
undefined
deviceUid:
string
in path
(no description)
Request Content-Types: application/json
Request Example
{
"timestamp": "integer (int64)",
"data": [
{
"attribute": {
"name": "string",
"type": "string"
},
"value": "string"
}
]
}
200 OK
successful operation
Response Content-Types: application/json
Response Example (200 OK)
{
"timestamp": "integer (int64)",
"data": [
{
"attribute": {
"name": "string",
"type": "string"
},
"value": "object",
"timestamp": "integer (int64)"
}
]
}
Connect device
deviceUid:
string
in path
(no description)
default
successful operation
Response Content-Types: application/json
Disconnect device
deviceUid:
string
in path
(no description)
default
successful operation
Response Content-Types: application/json
Get Device Description
deviceUid:
string
in path
(no description)
200 OK
successful operation
Response Content-Types: application/json
Response Example (200 OK)
{
"uuid": "string",
"name": "string",
"accessNetwork": "string",
"protocol": "string",
"physicalAddress": "string",
"accessNetworkOpts": "object",
"protocolOpts": "object",
"deviceIOs": [
{
"type": "string",
"attribute": {
"name": "string",
"type": "string"
}
}
],
"controller": "string",
"controllerOpts": "object"
}
Get device status
deviceUid:
string
in path
(no description)
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
physical
Get physical gateway information
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
Get a list of devices connected to this Gateway
Response Content-Types: application/json
Response Example (200 OK)
[
{
"uuid": "string",
"name": "string",
"accessNetwork": "string",
"protocol": "string",
"physicalAddress": "string",
"accessNetworkOpts": "object",
"protocolOpts": "object",
"deviceIOs": [
{
"type": "string",
"attribute": {
"name": "string",
"type": "string"
}
}
],
"controller": "string",
"controllerOpts": "object"
}
]
Get the physical gateway Id connected
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
Check the connection status of the physical Gateway
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
virtual
Get virtual gateway information
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
extensions
Orion subscription endpoint
Request Content-Types: application/json
Request Example
"string"
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
Get Statement List
Add Statement
undefined
Request Content-Types: application/json
Request Example
{
"name": "string",
"description": "string",
"statement": "string"
}
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
Remove Statement
statementId:
string
in path
(no description)
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
Remove Execution
executionId:
string
in path
(no description)
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
Add Execution
undefined
Request Content-Types: application/json
Request Example
{
"name": "string",
"description": "string",
"execution": "string"
}
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
Get Executions List
Get Rule List
Add Rule
undefined
Request Content-Types: application/json
Request Example
{
"name": "string",
"description": "string",
"statementId": "string",
"executionId": "string"
}
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
Remove Rule
ruleId:
string
in path
(no description)
200 OK
successful operation
type
string
Response Content-Types: application/json
Response Example (200 OK)
"string"
Schema Definitions
Attribute: object
- name: string
- type: string INTEGER, FLOAT, STRING, BOOLEAN
Example
{
"name": "string",
"type": "string"
}
Measurement: object
- timestamp: integer (int64)
- data: MeasurementData
-
MeasurementData
Example
{
"timestamp": "integer (int64)",
"data": [
{
"attribute": {
"name": "string",
"type": "string"
},
"value": "object",
"timestamp": "integer (int64)"
}
]
}
MeasurementData: object
- attribute: Attribute
- value: object
- timestamp: integer (int64)
Example
{
"attribute": {
"name": "string",
"type": "string"
},
"value": "object",
"timestamp": "integer (int64)"
}
Action: object
- timestamp: integer (int64)
- data: ActionData
-
ActionData
Example
{
"timestamp": "integer (int64)",
"data": [
{
"attribute": {
"name": "string",
"type": "string"
},
"value": "string"
}
]
}
ActionData: object
- attribute: Attribute
- value: string
Example
{
"attribute": {
"name": "string",
"type": "string"
},
"value": "string"
}
Device: object
Example
{
"uuid": "string",
"name": "string",
"accessNetwork": "string",
"protocol": "string",
"physicalAddress": "string",
"accessNetworkOpts": "object",
"protocolOpts": "object",
"deviceIOs": [
{
"type": "string",
"attribute": {
"name": "string",
"type": "string"
}
}
],
"controller": "string",
"controllerOpts": "object"
}
DeviceIO: object
- type: string SENSOR, ACTUATOR
- attribute: Attribute
Example
{
"type": "string",
"attribute": {
"name": "string",
"type": "string"
}
}
Entity: object
- name: string
- description: string
- id: string
- item: object
Example
{
"name": "string",
"description": "string",
"id": "string",
"item": "object"
}
StatementDescription: object
- name: string
- description: string
- statement: string
Example
{
"name": "string",
"description": "string",
"statement": "string"
}
ExecutionDescription: object
- name: string
- description: string
- execution: string
Example
{
"name": "string",
"description": "string",
"execution": "string"
}