Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

PENDING!

The API is already implemented by the JavaScript library, you can see some methods in:

https://github.com/OpenDevice/OpenDevice/blob/master/opendevice-clients/opendevice-js/src/js/OpenDeviceJS.js#L186


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

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.