This post shows (version 4.0) the JSON file that is loaded as start up and parsed to form a list of commands that is displayed in the left pane of the app’s UI.

  • Each command entry consists of:
  • Command name that is displayed on each command’s UI button
  • The relative URL used which forming the HTTP Request
  • Id property name that is displayed at the first level when the returns an array (eg Id is Description for Devices query)
  • The UI icon that is used on the command’s button

 

(In what follows, literal square brackets can’t be used .. )

 

{
  "Commands": 
  <Array: Open square bracket>
    {
      "command": "localhost",
      "url": "",
      "id": "",
      "icon": "OneBar"
    },
    {
      "command": "minwinpc",
      "url": "",
      "id": "",
      "icon": "TwoBars"
    },
    {
      "command": "192.168.0.28",
      "url": "",
      "id": "",
      "icon": "FourBars"
    },
    {
      "command": "ipconfig",
      "url": "api/networking/ipconfig",
      "id": ".Description",
      "icon": "World"
    },
    {
      "command": "sysinfo",
      "url": "api/iot/deviceinformation",
      "id": "",
      "icon": "OpenFile"
    },
    {
      "command": "osapi",
      "url": "api/os/info",
      "id": "",
      "icon": "ProtectedDocument"
    },
    {
      "command": "devices",
      "url": "api/devicemanager/devices",
      "id": ".Description",
      "icon": "Scan"
    },
    {
      "command": "processes",
      "url": "api/resourcemanager/processes",
      "id": ".ImageName",
      "icon": "DisableUpdates"
    },
    {
      "command": "default_app",
      "url": "api/iot/appx/getdefault",
      "id": "",
      "icon": "AllApps"
    },
    {
      "command": "providers",
      "url": "/api/etw/providers",
      "id": "",
      "icon": "Contact"
    },
    {
      "command": "packages",
      "url": "/api/appx/installed",
      "id": "",
      "icon": "Mail"
    },
    {
      "command": "startapp",
      "url": "api/taskmanager/start?appid=*",
      "id": "",
      "icon": "Play"
    },
    {
      "command": "stopapp",
      "url": "api/taskmanager/stop?*", 
      "id": "",
      "icon": "Download"
    },
        {
      "command": "shutdown",
      "url": "api/control/shutdown*",
      "id": "",
      "icon": "Stop"
    },
    {
      "command": "reboot",
      "url": "api/control/reboot*",
      "id": "",
      "icon": "Refresh"
    },
    {
      "command": "api",
      "url": "",
      "id": "",
      "icon": "Library"
    },
    {
      "command": "api params clr",
      "url": "",
      "id": "",
      "icon": "Delete"
    },
    {
      "command": "clear details",
      "url": "",
      "id": "",
      "icon": "Crop"
    },
    {
      "command": "cancel",
      "url": "",
      "id": "",
      "icon": "Cancel"
    }

  <Array: Close square bracket>
}