http://<your-server-address>:1323
- Description: Receives and stores data from sensors.
- Parameters:
sensorId
: Unique ID of the sensor.groupId
: Unique ID of the group.dataType
: Type of data (e.g., string, int, float, date).dataUnit
: Unit of the data, if relevant.dataInfo
: Information about the data.data
: The actual data being sent.
- Response: Confirmation message with sensor ID, data type, and data.
- Description: Creates a new group.
- Body:
- JSON object containing
groupId
,name
, anddescription
.
- JSON object containing
- Response: JSON object of the created group.
- Description: Updates an existing group.
- Parameters:
id
: Group ID.
- Body:
- JSON object with updated
name
anddescription
.
- JSON object with updated
- Response: JSON object of the updated group.
- Description: Retrieves a specific group by ID.
- Parameters:
id
: Group ID.
- Response: JSON object containing group details.
- Description: Lists all groups.
- Response: Array of JSON objects, each representing a group.
- Description: Retrieves sensors for a specific group.
- Parameters:
groupId
: Group ID.
- Response: JSON array of sensor data.
- Description: Retrieves sensor data for multiple groups.
- Body:
- JSON object with an array of
groupIds
.
- JSON object with an array of
- Response: JSON object containing sensor data for the specified groups.