mintproject / MINT-DataCatalog-Public

Public-facing aspects of data catalog, such as documentation, demos, tracking issues, and feature requests
Apache License 2.0
1 stars 1 forks source link

Return all standard variable information in query #10

Closed brandomr closed 4 years ago

brandomr commented 4 years ago

The following query returns information about a standard variable based on a search using it's ID. However, it does not return the standard variables URI. This is key information that should be returned along with the name/description/metadata.

q = {
  "variable_ids__in": [SOME_ID_HERE]
}

resp = requests.post(f"{url}/variables/variables_standard_variables",
                     headers=request_headers,
                     json=q).json()
dnfeldman commented 4 years ago

@brandomr I updated the endpoint to return the following for each standard_variable: id, name, ontology, uri, description (all prepended with standard_variable_ to distinguish them from other keys in the response body