Changed APIs


EnOS 3.0.0 introduces the following API behavioral changes.

API Authentication


EnOS 3.0.0 enabled fine-grained authorization mode for Model Service, Connection Service, Asset Service, and Asset Tree Service APIs by default. Before calling these APIs, you need to go to Application Portal > Developer Console > API Management > API Authorization and add the application that needs to be authorized for the API, so that the application can call the API. For more information, see API Authentication.

Model/Asset/Device APIs


The following changes apply to Model Service, Asset Service, and the Device APIs within Connection Service.


Description

EnOS Cloud

EnOS Edge

If a request parameter with the internationalization structure is specified, the defaultValue field in the internationalization structure is required.

For APIs that require specifying assets through assetId or productKey+deviceKey, if the request format is incorrect, the request will fail and an error message will be prompted.

Model Service


API Name

Description

EnOS Cloud

EnOS Edge

Search Thing Model

  • Supports using the like operator to query the modelId and modelName fields in the expression request parameter.

  • Supports using both expression and relationFilter for searching.

Connection Service


API Name

Description

EnOS Cloud

EnOS Edge

When the request parameter productKey is empty, the request will fail and return a parameter error.

×

Batch Create Devices

Supports providing multiple values for the request parameter productKey to create devices for multiple products simultaneously.

×

Remove Sub-Device

When the request parameter subDevices is empty, the request will still succeed, but no sub-devices will be removed.

×

Asset Tree Service


API Name

Description

EnOS Cloud

EnOS Edge

Search Asset Tree

If the request parameter pagination is not specified, the default is 10 records per page.

×