Interacting with WoT

SmartWorks IoT provides a tool, API Inspector, to get familiar and interact with the API structure. Requests can be made through the API Inspector without having to worry about authentication details, as this information is automatically populated.

  1. Open the API Inspector.

    Figure 1.
  2. Update the State property to "On". The request should look like this:
  3. Try it in the API Inspector.

    Figure 2.
  4. Check at the Headers section that the platform already provides the credentials needed from the Studio Session.

    Figure 3.
  5. Select the Body section and enter the following payload:
      "state": "On"

    Figure 4.
    As the property was type "Read only", an error message is displayed.
  6. Edit the property to enable sending data.

    Figure 5.
  7. Repeat the process of sending the request and verifying how the property gets updated.

    Figure 6.