Main API Endpoints
The GIoT API provides a flexible and secure way to interact with connected devices, configure settings, and retrieve real-time data. Below are the primary API endpoints:
Authentication & Security
-
Endpoint:
/api/auth/login -
Method:
POST -
Description: Authenticate users via OAuth2 to generate access tokens for secure API communication.
Device Commands & Configuration
-
Endpoint:
/api/device/{device_id}/command -
Method:
POST -
Description: Send commands to a specific IoT device, such as changing reporting intervals or triggering remote actions.
Sensor Data Retrieval
-
Endpoint:
/api/device/{device_id}/data -
Method:
GET -
Description: Fetch real-time sensor data, including temperature, movement, and battery status.
Geofence & Alarm Rules
-
Endpoint:
/api/geofence/{geofence_id}/update -
Method:
POST -
Description: Update geofence parameters and set rules for location-based alerts.