Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 27, 2024

Conversation

manup
Copy link
Member

@manup manup commented May 27, 2024

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"
    }
}

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 appended.
@manup manup added this to the v2.27.1-beta milestone May 27, 2024
@manup manup merged commit 6c4b927 into dresden-elektronik:master May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant