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¶
Neat Devices¶
POST /neatDevice/all/allDevices- Gets all devicesPOST /neatDevice/all/totalDevices- Gets the total number of devicesPOST /neatDevice/room/numDevicesConnected- Gets the number of connected devicesPOST /neatDevice/all/devicesConnected- Gets a list of connected devicesPOST /neatDevice/all/numOfDevicesByRoom- Gets the number of devices by roomPOST /neatDevice/room/numOfRooms- Gets the number of roomsPOST /neatDevice/room/roomStatusCount- Gets the status count of roomsPOST /neatDevice/:devicesn- Gets a specific device by serial numberGET /neatDevice/all/devicesFilters- Gets device filtersPOST /neatDevice/refresh/:devicesn- Refreshes a specific device by serial number
Filters¶
POST /filters/location- Gets location filtersPOST /filters/region- Gets region filtersPOST /filters/room- Gets room filtersGET /filters/neatdevices- Gets Neat devices filters
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
Examples¶
Neat Devices¶
Example:
Request:
POST /neatDevice/all/allDevices
{
"locationName": "all",
"regionName": "all",
"roomName": "all"
}
[
{
"deviceid": "ND001",
"devicesn": "ND123",
"devicemodel": "ModelX",
"status": { "connected": true, "inCallStatus": "ACTIVE" },
"deviceconnected": true,
"details": {
"room": "Room A",
"location": "HQ",
"region": "North"
}
},
{
"deviceid": "ND002",
"devicesn": "ND456",
"devicemodel": "ModelY",
"status": { "connected": false, "inCallStatus": "NONE" },
"deviceconnected": false,
"details": {
"room": "Room B",
"location": "Branch",
"region": "South"
}
}
]
Filters¶
Example:
Request:
POST /filters/location
{
"locationName": "all",
"regionName": "all",
"roomName": "all"
}
["ALCOBENDAS", "MADRID"]
Intervals¶
Example:
Request:
GET /intervals
[
{
"id": 1,
"intervalFeedbackTestApi": 5000,
"intervalDeviceStatus": 10000,
"intervalDeviceStatusEspera": 15000,
"intervalAllDevices": 20000
}
]
Refer to the API documentation for detailed information on each endpoint.