IoT Export
Connection Template

Generic REST Server

9min

Introduction

The Generic REST Server export module provides a REST service via HTTP and HTTPS using the Generic IoT Data Model.

This is a "single service" module, so only one export instance can be created.

Configuration

The module can be activated via the "IoT Export" area in the web configuration or the BSC Remote and the "x-api-key" can be stored.

Access

The service is provided at the following URL:

https://<IP>/iot/export/generic/things

Api protection

When activating the module, an "x-api-key" can be configured. This is filled with a random string by default.

If an empty string is stored, access is not protected.

Otherwise the key stored there must be sent with every request in the header field "x-api-key".

Endpoints

The entry point is the /things end point. There all devices are listed with detailed information.

The other endpoints are used to read out specific information from a device or to make a value change.



Get a list of all available devices Objects
GET
Request
Body Parameters
Parameter name
optional
String




Retrieve a single device object by its ID.
GET
Request
Path Params
thingId
required
String
The ID of the device




Retrieving the current connection status by means of a device ID
GET
Request
Path Params
thingId
required
String
The ID of the device




Retrieve the meta information of a device by its ID
GET
Request
Path Params
thingId
required
String
The ID of the device




Retrieving the channel object by means of the device and channel ID
GET
Request
Path Params
thingId
required
String
The ID of the device
channelId
required
String
The ID of the device channel




Retrieve the current channel value based on the device and channel ID
GET
Request
Path Params
thingId
required
String
The ID of the device
channelId
required
String
The ID of the device channel




Sets the value of the channel specified via the devices and channel ID
POST
Request
Path Params
thingId
required
String
The ID of the device
channelId
required
String
The ID of the device channel
Body Parameters
newValue
required
String
The new value


The new value is written as (raw) string directly (without JSON formatting) into the body of the request!



Retrieving the meta information of a channel by means of the device and channel ID
GET
Request
Path Params
thingId
required
String
The ID of the device
channelId
required
String
The ID of the device channel




Retrieving the values Description of a channel by means of the devices and channel ID
GET
Request
Path Params
thingId
required
String
The ID of the device
channelId
required
String
The ID of the device channel




Retrieving the channel description by means of the devices and channel ID
GET
Request
Path Params
thingId
required
String
The ID of the device
channelId
required
String
The ID of the device channel




Query whether the value of a channel can be changed
GET
Request
Path Params
thingId
required
String
The ID of the device
channelId
required
String
The ID of the device channel