Launch Handler Payload Examples

From wiki.gpii
Jump to: navigation, search

See Example Payloads.

URL

/launch

gsettings

POST Request - launching

{
    "type": "gpii.launch.gsettings",
    "options": {
        "schema": "org.gnome.desktop.a11y.applications",
        "key": "screen-magnifier-enabled",
        "value": true
    }
}

POST Response - launching

HTTP status code

DELETE Request - stopping

{
        "type": "gpii.launch.gsettings",
        "options": {
             "schema": "org.gnome.desktop.a11y.applications",
             "key": "screen-magnifier-enabled",
             "value": false
         }
}

DELETE Response - stopping

HTTP status code

Executables

POST Request - launching

{
    "type": "gpii.launchHandler.exec",
    "options": {
         "command": "jaws"
    }
 }

POST Response - launching

{ 
    "statusCode": 200,
    "pid": 1234
}

DELETE Request - stopping

{
    "type": "gpii.launchHandler.exec",
    "options": {
         "pid": 1234
    }
}

DELETE Response - stopping

HTTP Status Code