See API document here: https://datamart-upload.readthedocs.io/en/latest/api/
Implement GET /metadata/variable end point for keyword search.
Given list of keywords, return list of variable metadata.
Use PostgresSQL fuzzysearch on the the dataset name, dataset description, variable name and variable description.
The result should be a JSON object that includes simple information that a GUI may use to display to a user:
- variable name
- variable description
- variable id
- dataset short name (used as id)
- dataset name
If we have time, the result should also include:
- time span (if defined in the database)
- number of points
- precision (if defined for the database)
If time allows, the search should have a bit of smarts so that if a country or countries are provided or detected in the keywords, the countries should be wikified and the search should filter out the variable if it is not available for the requested country or countries.
See API document here: https://datamart-upload.readthedocs.io/en/latest/api/
Implement GET /metadata/variable end point for keyword search.
Given list of keywords, return list of variable metadata.
Use PostgresSQL fuzzysearch on the the dataset name, dataset description, variable name and variable description.
The result should be a JSON object that includes simple information that a GUI may use to display to a user:
If we have time, the result should also include:
If time allows, the search should have a bit of smarts so that if a country or countries are provided or detected in the keywords, the countries should be wikified and the search should filter out the variable if it is not available for the requested country or countries.