What we currently get from the “check for updates” endpoint ${MENDER_SERVER_URL}/api/devices/v1/deployments/device/deployments/next
is something like this:
{
"id": "guid",
"artifact": {
"artifact_name": "name",
"source": {
"uri": "download_url",
"expire": "2024-11-14T20:19:18.017488718Z",
"method": "GET"
},
"device_types_compatible": [
"device_type"
]
}
}
What if we want to add more metadata to this response, for example:
- new veriosn of the update
- release notes
- size of the payload (not the artifact, but the update payload)
- hash of the payload
Currently, we can get all this info only after we have downloaded the artiact, and that too is deep inside nested TARs, so you have to do post-processing after download before you can get all this info.