Offbeat Iot
Get started
Using the api

Using the api

You can use the api to get the current status of your devices,

You can also send commands and data to your devices.

See the examples below:

list all devices

Unresolved directive in api-all-endpoints.adoc - include::../../../target/generated-snippets/get all devices/curl-request.adoc[] .and you will see Unresolved directive in api-all-endpoints.adoc - include::../../../target/generated-snippets/get all devices/response-body.adoc[]

you can also see status for one device

Unresolved directive in api-all-endpoints.adoc - include::../../../target/generated-snippets/get single device/curl-request.adoc[] .and you will see Unresolved directive in api-all-endpoints.adoc - include::../../../target/generated-snippets/get single device/response-body.adoc[]

if you want to send data to your device, you can do it using http GET

Unresolved directive in api-all-endpoints.adoc - include::../../../target/generated-snippets/send data to device device/curl-request.adoc[] .and you will see Unresolved directive in api-all-endpoints.adoc - include::../../../target/generated-snippets/send data to device device/response-body.adoc[]

you can also do it using http POST with the data in the body

Unresolved directive in api-all-endpoints.adoc - include::../../../target/generated-snippets/send data to device device - post/curl-request.adoc[] .and you will see Unresolved directive in api-all-endpoints.adoc - include::../../../target/generated-snippets/send data to device device - post/response-body.adoc[]

Integrate