User Guide¶
This guide provides instructions on how to use the Graph API Service.
Getting Started¶
- Ensure the service is running.
- Use the provided API endpoints to interact with the service.
API Endpoints¶
Graph API¶
POST /device/all- Gets all devicesPOST /device/totalDevices- Gets the total number of devicesPOST /device/numOfDevicesConnected- Gets the number of connected devicesPOST /device/devicesConnected- Gets a list of connected devicesPOST /device/numDevicesByRoom- Gets the number of devices by roomPOST /device/numOfRooms- Gets the number of roomsPOST /device/roomStatusCount- Gets the status count of roomsGET /device/:id- Gets a specific device by serial numberGET /device/:id/health- Gets the health of a specific device by IDPOST /device/:id/refresh- Refreshes a specific device by serial numberPOST /device/:id/filters- Updates filters for a specific devicePUT /device/:id/filters- Updates filters for a specific deviceDELETE /device/:id/filters- Deletes filters for a specific devicePOST /device/calls/getSubscriptionData- Gets subscription data
Filters¶
POST /filters/location- Gets location filtersPOST /filters/region- Gets region filtersPOST /filters/room- Gets room filtersGET /filtersConfig- Gets all filters configGET /filtersConfig/:id- Gets filter config by IDGET /filtersConfig/count- Counts all filters configPOST /filtersConfig/:id- Upserts filter config by IDPOST /filtersConfig- Upserts filters configDELETE /filtersConfig/:id- Deletes filter config by IDDELETE /filtersConfig- Deletes filters config not in given IDsGET /filters- Gets all filtersGET /filters/:id- Gets filter by IDGET /filters/device/:deviceSN- Gets filter by device serial numberGET /filters/count- Counts all filtersPOST /filters/:id- Upserts filter by IDPOST /filters- Upserts filtersDELETE /filters/:id- Deletes filter by IDDELETE /filters- Deletes filters not in given IDs
Intervals¶
POST /intervals/createTable- Creates the intervals tableGET /intervals- Gets all intervalsGET /intervals/:id- Gets interval by IDPOST /intervals- Creates a new intervalPUT /intervals/:id- Updates interval by IDDELETE /intervals/:id- Deletes interval by ID
Refer to the API documentation for detailed information on each endpoint.