Create endpoint to return variable values for given report IDs and variable name/types

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Done
    • Priority: L3 - Default
    • 3.1.0-alpha2, 3.1.0
    • Affects Version/s: None
    • Component/s: None
    • Not defined

      An endpoint exists that returns the values of a given variable name/type combination across the report IDs specified. API proposal below.

      ATs:

      • a new endpoint returns the values for a given variable name/type combination across the report IDs specified
      • API documentation updated
      POST /api/variables/reports/values 
      
      Request Payload: 
      { 
        "reportIds": ["reportId1", "reportId2", ...], // (required)  
        "name": "variableName", // (required)
        "type": "variableType", // (required)
        "valueFilter": "val", // returns only those string values that contain the given value. Applies only for type 'string'. Filter is case insensitive.
        "resultOffset": 20,
        "numResults": 20,
      } 
      
      Response: 
      
      [ 'value 1', // sorted alphabetically  'value 2', ... ]

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Joshua Windels
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: