Difference between revisions of "Preferences Server Payload Examples"

From wiki.gpii
Jump to: navigation, search
(Response: Should have example using flat style; will add this later)
(Response (Flat Style): first version with flat preferences)
Line 7: Line 7:
 
== Response (Flat Style) ==
 
== Response (Flat Style) ==
  
TODO
+
FOR REVIEW BY ARCHITECTURE TEAM!
 +
 
 +
<pre>{
 +
  "http://registry.gpii.org/common/magnification": [
 +
    { "value": 2.0 }
 +
  ],
 +
  "http://registry.gpii.org/common/tracking": [
 +
    { "value": "mouse" }
 +
  ],
 +
  "http://registry.gpii.org/applications/org.gnome.desktop.a11y.magnifier.mouse-tracking": [
 +
    { "value": "proportional" } // the value "mouse" is not supported by GNOME Magnifier
 +
  ],
 +
  "http://registry.gpii.org/applications/org.gnome.desktop.a11y.magnifier.applicationPriority": [
 +
    { "value": 100 }
 +
    // "application priority" is not a GNOME Magnifier setting.
 +
    // Is there a way to use a common term apply to a specific application?
 +
  ],
 +
  "http://registry.gpii.org/applications/org.gnome.desktop.a11y.magnifier.show-cross-hairs": [
 +
    { "value": "true" }
 +
  ],
 +
  "http://registry.gpii.org/applications/com.microsoft.windows.screenmagnifier.applicationPriority": [
 +
    { "value": 0 }
 +
    // "application priority" is not a GNOME Magnifier setting.
 +
    // Is there a way to use a common term apply to a specific application?
 +
  ],
 +
  "http://registry.gpii.org/applications/com.microsoft.windows.screenmagnifier.MagnifierUIWindowMinimized": [
 +
    { "value": 0 }
 +
  ]
 +
}</pre>
  
 
== Response (Old, Hierarchical Style) ==
 
== Response (Old, Hierarchical Style) ==

Revision as of 16:07, 21 February 2013

Request

    GET /user/<token>

Response (Flat Style)

FOR REVIEW BY ARCHITECTURE TEAM!

{
  "http://registry.gpii.org/common/magnification": [
    { "value": 2.0 }
  ],
  "http://registry.gpii.org/common/tracking": [
    { "value": "mouse" }
  ],
  "http://registry.gpii.org/applications/org.gnome.desktop.a11y.magnifier.mouse-tracking": [
    { "value": "proportional" } // the value "mouse" is not supported by GNOME Magnifier
  ],
  "http://registry.gpii.org/applications/org.gnome.desktop.a11y.magnifier.applicationPriority": [
    { "value": 100 } 
    // "application priority" is not a GNOME Magnifier setting. 
    // Is there a way to use a common term apply to a specific application?
  ],
  "http://registry.gpii.org/applications/org.gnome.desktop.a11y.magnifier.show-cross-hairs": [
    { "value": "true" } 
  ],
  "http://registry.gpii.org/applications/com.microsoft.windows.screenmagnifier.applicationPriority": [
    { "value": 0 } 
    // "application priority" is not a GNOME Magnifier setting. 
    // Is there a way to use a common term apply to a specific application?
  ],
  "http://registry.gpii.org/applications/com.microsoft.windows.screenmagnifier.MagnifierUIWindowMinimized": [
    { "value": 0 } 
  ]
}

Response (Old, Hierarchical Style)

2x Magnification with Mouse Tracking and GNOME-specific Cross Hairs

{
    "display": {
        "screenEnhancement": {
            "magnification": 2.0,
            "tracking": "mouse",
            "applications": [{
                "name": "GNOME Shell Magnifier",
                "id": "org.gnome.desktop.a11y.magnifier",
                "priority": 100,
                "parameters": {
                    "show-cross-hairs": true
                }
            }, {
                "name": "Windows Magnifier",
                "id": "com.microsoft.windows.screenmagnifier",
                "priority": 0,
                "parameters": {
                    "MagnifierUIWindowMinimized": 0
                }
            }]
        }
    }
}