Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
68 stars 23 forks source link

Impact choice as parameter #28

Closed da-ekchajzer closed 1 year ago

da-ekchajzer commented 2 years ago

Problem

Impacts can't be chosen in a request - all impacts are returned.

Solution

Add a query parameter in each route containing a list of impacts name.

['gwp', 'pe', 'adp']

In bottom-up service return only the impact in the dataset.

Additional context or elements

The following impacts can be retrieved :

Impact name code
Abiotic depletion adp
global warming potential gwp
primary energy use pe
da-ekchajzer commented 1 year ago

Implemented in #159