Uploaded image for project: 'Wookie'
  1. Wookie
  2. WOOKIE-327

Make widget metadata returned by the REST API more consistent with W3C Widget Config.xml, remove confusing IDs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • None
    • None

    Description

      The metadata returned by Wookie for GET /widgets and GET /widgets/

      {id_or_uri}

      is slightly confusing in that it doesn't quite follow the W3C widget spec (e.g. it has <title> instead of <name>) and it contains two different attributes for identifiers:

      id == the wookie internal JPA identifier
      identifier == the W3C Widget id

      I propose making the following changes:

      1. Change "title" to "name"
      2. Remove "identifier"
      3. Change the content of "id" to the W3C Widget URI id (as provided in config.xml
      4. Change <icon>

      {URL}</icon> to <icon src="{URL}

      "/>

      This has implications for connectors, which will need to be updated to the same version as the Wookie server.

      Attachments

        1. widgethelperpatch.txt
          2 kB
          Scott Wilson

        Activity

          People

            scottbw Scott Wilson
            scottbw Scott Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: