Uploaded image for project: 'Shindig'
  1. Shindig
  2. SHINDIG-1369

Gadget-and-container JS framework (part 2)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-RC2
    • Javascript
    • None

    Description

      This introduces a standalone OSAPI methods to access gadget metadata from back-end.
      Per discussion with Paul, this will work with JSON requests and responses that look like below.

      Request –
      [{
      "method":"gadgets.metadata.get",
      "params":

      { "container":"patchwork", "ids": [ "http://hosting.gmodules.com/ig/gadgets/file/104212287762013401606/demo_userprefs.xml" ], "userId":"@viewer", "groupId":"@self" }

      }]

      Response –
      [{
      "id": "gadgets.metadata.get",
      "data": {"http://hosting.gmodules.com/ig/gadgets/file/104212287762013401606/demo_userprefs.xml": {
      "userPrefs": {
      "mystring":

      { "name": "mystring", "displayName": "My string", "type": "STRING", "required": false, "defaultValue": "abc" }

      ,
      },
      "title": "User preferences",
      "titleUrl": "",
      "sameDomain": false,
      "description": "",
      "views": {"default": {
      "iframeHost": "http://...googleusercontent.com",
      "preferredHeight": 0,
      "iframePath": "/gadgets/ifr?v=...&container=patchwork&view=default&debug=0&lang=all&url=...demo_userprefs.xml&country=ALL&libs=core#up_mystring=abc&up_myenum=no&up_myhidden=none&up_mybool=false&up_mylist=one%7Ctwo&st=...&rpctoken=...",
      "type": "default",
      "rpcToken": "-5941084236242578519",
      "preferredWidth": 0
      }},
      "features": {"core": {
      "name": "core",
      "optional": false
      }},
      "url": "http://hosting.gmodules.com/ig/gadgets/file/104212287762013401606/demo_userprefs.xml"
      }}
      }]

      Attachments

        Activity

          People

            Unassigned Unassigned
            mhermanto Michael Hermanto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: