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

Accept/reject REST API proposal for getting/creating widgets

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.9.0
    • 0.9.1
    • None
    • None

    Description

      A while ago we proposed making changes to the Widget Instances API to be more REST-like in its behaviour, while still supporting legacy clients.

      The main changes are (1) the addition of GET methods to retrieve a Widget Instance already created and (2) a change in documentation for the POST method to offer a deprecation warning for using it as get-or-create. (PUT is not altered).

      Proposed changes to the API:

      1. GET

      {wookie}/widgetinstances/{instance id} {api_key}

      Returns the representation of a widget instance.

      If the widget instance was not created using the provided api_key, then a 403 Forbidden status code will be returned.

      If no widget instance is found, a 404 Not Found status code will be returned.

      2. GET {wookie}

      /widgetinstances

      {instance params}

      Returns the representation of the instance for the given parameters.

      If the widget instance was not created using the provided api_key, then a 403 Forbidden status code will be returned.

      If no widget instance is found, a 404 Not Found status code will be returned.

      3. POST {wookie}/widgetinstances {instance params}

      Create a new widget instance using the given parameters. If a new widget instance is succesfully created, a status code of 201 is returned along with the widget instance represented in XML.

      If an instance already exists for the given parameters, this method will return a status code of 200 along with the existing instance (this is intended to support legacy clients). Note this is DEPRECATED behaviour, and future versions of the API may simply return an error code.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rgardler Ross Gardler
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 5h
                  5h
                  Remaining:
                  Remaining Estimate - 5h
                  5h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified