Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19414

Extension.get API: add details to values

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.13
    • Fix Version/s: 4.7.13
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      At present, Extension.get returns something like this:

      {
      ...
          "values": [
              {
                  "id": "0",
                  "key": "org.civicrm.angularex",
                  "status": "uninstalled"
              },
              ...
      

      It seems reasonable that it could offer more information, comparable to the extension.getremote API (CRM-19408):

      {
      ...
          "values": [
              {
                  "id": 0,
                  "key": "org.civicrm.module.cividiscount",
                  "type": "module",
                  "name": "CiviDiscount",
                  "label": "CiviDiscount",
                  "file": "cividiscount",
                  "classloader": [],
                  "description": "Enables discount codes and automatic discounts for events and memberships.",
                  "urls": {
                      "Documentation": "\n      https://github.com/dlobo/org.civicrm.module.cividiscount/\n    ",
                      "Licensing": "http://civicrm.org/licensing",
                      "Main Extension Page": "\n      http://civicrm.org/extension/cividiscount-extension\n    ",
                      "Support": "http://civicrm.stackexchange.com"
                  },
                  "license": "AGPL-3.0",
                  "maintainer": {
                      "author": "CiviCRM LLC",
                      "email": "info@civicrm.org"
                  },
                  "releaseDate": "2016-03-04",
                  "version": "3.2",
                  "compatibility": {
                      "ver": [
                          "4.5",
                          "4.6",
                          "4.7"
                      ]
                  },
                  "comments": "\n    For support, please contact the team on the forums. (http://forum.civicrm.org)\n  ",
                  "civix": {
                      "namespace": "CRM/CiviDiscount"
                  },
                  "downloadUrl": "https://github.com/dlobo/org.civicrm.module.cividiscount/archive/3.2.zip",
                  "develStage": "stable"
              },
              ...
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                allenshaw Allen Shaw
                Reporter:
                allenshaw Allen Shaw
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: