Interacting with WoT

SmartWorks provides a tool, the 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:
    PUT
    /spaces/your_spaceID/categories/your_category_name/things/your_thing_uid/properties/state
  3. Try it in the API Inspector.


    Figure 2.
  4. Select the Body section and enter the following payload:
    {
      "state": "On"
    }


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


    Figure 4.
  6. Repeat the process of sending the request and verifying how the property gets updated.


    Figure 5.