Fill the title of the page.
Choose the “REST API docs” as parent.
Choose the “JSON” as template.
Choose the order value regarding the REST API page lists.

Fill the content of the page with a table containing JSON parameters.

<table class="table table-condensed table-bordered">
        <thead style="background-color:#f5f5f5">
          <tr>
            <th>Property/th>>
            <th>Description</th>
            <th>Type</th>
            <th>Mandatory/Optional</th>
            <th>Further informations</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>name</td>
            <td>Name of the experiment</td>
            <td>string</td>
            <td>Optional</td>
            <td></td>
          </tr>
          ...
        </tbody>
</table>

Then fill one “WordPress Custom Field”:

  • JSON: exemple of JSON
    • (i.e. the JSON as string)

Here is an exemple to show where and how values are displayed:


Profiles JSON

Property Description Type
power Set power mode “dc” or “battery”
profilename Profile name string
{
   "power":"dc",
   "sensor":{
      "temperature":false,
      "luminosity":false,
      "frequency":5000
   },
   "consemptium":{
      "current":false,
      "voltage":false,
      "power":true,
      "frequency":1000
   },
   "radio":{
      "rssi":false,
      "frequency":500
   },
   "profilename":"profile1"
}