code-gov-api icon indicating copy to clipboard operation
code-gov-api copied to clipboard

Add an organization type identifier to API response

Open froi opened this issue 7 years ago • 0 comments

Is your feature request related to a problem? Please describe. Add a new field to the API response identifying what type of organization the repo comes from.

Describe the solution you'd like The ideal solution would be to include an orgType field that would identify where the data comes from.

Eg.

{
      "name": "APIV2",
      "organization": "OPA",
      "repositoryURL": "https://github.com/USDepartmentofLabor/APIv2",
      "description": "The back-end and admin UI code for the next evolution of DOL's open data API.",
      "permissions": {
        "licenses": [
          {
            "URL": "https://creativecommons.org/publicdomain/zero/1.0/",
            "name": "CC0"
          }
        ],
        "usageType": "openSource"
      },
      "tags": [
        "APIv2"
      ],
      "orgType": "federal",
      "agency": {
        "name": "Department of Labor",
        "acronym": "DOL",
        "website": "https://www.dol.gov",
        "codeUrl": "https://www.dol.gov/code.json",
        "fallback_file": "DOL.json",
        "requirements": {
          "agencyWidePolicy": 1,
          "openSourceRequirement": 0,
          "inventoryRequirement": 0,
          "schemaFormat": 0.5,
          "overallCompliance": 0.3333333333333333
        },
        "complianceDashboard": true
      },
      "repoID": "dol_opa_apiv2",
      "score": 11.700000000000001
    }

froi avatar Jul 19 '18 19:07 froi