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/loginMethod:
POSTDescription: Authenticate users via OAuth2 to generate access tokens for secure API communication.
Device Commands & Configuration
Endpoint:
/api/device/{device_id}/commandMethod:
POSTDescription: Send commands to a specific IoT device, such as changing reporting intervals or triggering remote actions.
Sensor Data Retrieval
Endpoint:
/api/device/{device_id}/dataMethod:
GETDescription: Fetch real-time sensor data, including temperature, movement, and battery status.
Geofence & Alarm Rules
Endpoint:
/api/geofence/{geofence_id}/updateMethod:
POSTDescription: Update geofence parameters and set rules for location-based alerts.