edgexfoundry / edgex-ui-clojure

Owner: Core/Support WG
Apache License 2.0
1 stars 7 forks source link

Modify device `adminState` PUT REST API on backend #49

Closed lindseysimple closed 5 years ago

lindseysimple commented 5 years ago

The REST API to update device adminState property has been changed to call PUT http://localhost:48081/api/v1/device/57bc6d80555e5218873e5a30 with body

{"adminState":"unlocked"} or {"operatingState":"enabled"} 

Update the UI backend UpdateLockMode method to call the new API.

Change based on the metadata RAML API document: https://docs.edgexfoundry.org/core-metadata.html#device__id__put