i want to perform an api request for getting all hardwares of a spesific recording server with filtering from the /harware endpoint. i tried to do something like that :
/api/rest/v1/hardware?includeChildren=hardware(relations(parent(id=‘some id’)))
i tried with the /recordingServer/{id}/hardware, but im using this as part of the request cameras(id),hardwareDriverSettings(macAddress,deviceModelName,deviceManufacturer,firmwareVersion,httpSEnabled,httpSPort),speakers(id),microphones(id),motionDetections(enabled)
and i didnt got it from this request (i did succeed with /hardware)
how can i do it?
“relations”: {
“parent”: {
“type”: “recordingServers”,
“id”: “3e11f0d8-4d04-4ee1-9e60-edsadda133”
},
My observations:
GET /api/rest/v1/recordingservers/{id}/hardware
gives you the hardware devices on one recording server id
GET /api/rest/v1/hardware?includeChildren=hardwareDriverSettings
gives you all hardware devices
GET /api/rest/v1/hardware?includeChildren=hardwareDriverSettings
gives you all hardware devices and includes hardwareDriverSetings object
GET /api/rest/v1/recordingservers/{id}/hardware?includechildren=hardwaredriversetttings
gives you hardware devices on one recording server id but does not include hardwareDriverSetings object
Whether this is by design or a mistake, and whether there is a different way to achieve the information I will have to ask an expert Milestone developer. I will get back on this.