dresden-elektronik / deconz-rest-plugin

deCONZ REST-API plugin to control ZigBee devices
BSD 3-Clause "New" or "Revised" License
1.9k stars 503 forks source link

REST API GET DDF bundle descriptor, return file hash #7789

Closed manup closed 5 months ago

manup commented 5 months ago

The SHA-256 file hash can be used by clients to check if a bundle needs to be updated when the immutable part has changed. E.g. signatures were appended.

Documentation is updated in:

https://dresden-elektronik.github.io/deconz-rest-doc/endpoints/ddf/#get-all-ddf-bundle-descriptors

Example output:

{
  "377955a530cb7b35917021a47aca7f7ee13fc4d89ecf969da29098f77ad75c1a": {
      "uuid": "b5b20dff-da08-45f9-b9b6-4f430ccd9ed4",
      "product": "Aqara Vibration Sensor DJT11LM",
      "version_deconz": ">2.27.0",
      "last_modified": "2023-02-02T13:35:59.000Z",
      "device_identifiers": [
        [
          "LUMI",
          "lumi.vibration.aq1"
        ]
      ],
      "file_hash": "929df9c00f39bd01aea2278b624bfddac03b7dd5aa06ee1e97f9811cc2f6abc5"
    }
}