Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

devices_1.json

 

 

Format

Using the format option is useful when using a web browser but you wish to see the result in JSON format. Adding format=json achieves this. Normally a web browser will set its accept header to html, so in that case we return the rendered page. Using an API to retrieve JSON you should set the accept header to contain the string "json". That might be "json/application" or whatever you like. You can override this by providing the format option in the URL..

...

HTTP VerbAcceptURLResultExample Response
GETJSON/devicesGet a list of all devices.devices.json
GETJSON/devices?properties=system.id,system.name,system.type,system.serialGet a list of devcies with the data id, name, type and serialdevices_properties.json
GETJSON/devices/8Get the system table of device with id = 8.devices_8.json
GETJSON/devices/8&?include=biosGet the system table and bios table for device with ID = 8.devices_8_include_bios.json
     

...