kuzzleio / kuzzle-device-manager

IoT Devices & Assets Management providing digital twins, payload decoding, normalized measures, provisioning. Multi-Tenant ready for white labelled and B2B2C applications.
https://docs.kuzzle.io/official-plugins/device-manager/1
Apache License 2.0
14 stars 6 forks source link

feat(assets): remove assetId in upsert #326

Closed Leagian closed 8 months ago

Leagian commented 8 months ago

What does this PR do ?

This PR is an update of the previous one, the assetId has been removed to prevent displaying the _id in the API action. With this update, you can now perform updates or creations using only the model and reference. example :

{
  "controller": "device-manager/assets",
  "action": "upsert",
  "engineId": "engine-ayse",
  "body": {
    "model": "Container",
    "reference": "linked1",
    "metadata": {
      "weight": 12,
      "height": 11
    }
  }
}

How should this be manually tested?

see above the api example