PENDING!
The API is already implemented by the JavaScript library, you can see some methods in:
Authentication
Get AuthToken using APIKEY encoded in Base64
curl -X GET -H "Authorization: Basic ZzXhuRkrYc5sTrXRzsZw==" http://localhost:8181/api/auth
Response: {"token":"XXXXXXXXXXXX"}
Now you can call REST endpoint using Token
curl -vs -X GET -H "Authorization: Bearer XXXXXXXXX" http://localhost:8181/api/devices
0 Comments