ThingsBoard REST API may be explored using Swagger UI. You can explore REST API of the live-demo server using this Swagger UI link.
To explore REST API provided by ThingsBoard Professional Edition please use the following Swagger UI link.
Once you will install ThingsBoard server you can open UI using the following URL:
http://YOUR_HOST:PORT/swagger-ui.html
ThingsBoard uses JWT for request auth. You will need to populate “X-Authorization” header using “Authorize” button in the top-right corner of the Swagger UI.
In order to get the JWT token, you need to execute the following request:
In case of local installation:
In case of live-demo server:
resources/get-token.sh |
---|
|
resources/get-token-response.json |
---|
|
ThingsBoard team provides client library written in Java to simplify consumption of the REST API. Please see Java REST API Client documentation page for more details.