Project Lockdown (an initiative from The IO Foundation) is a civic tech, interactive platform providing an overview of the state of Human and Digital Rights around the globe. It evaluates policies obtained from official sources that may impact their observance. It provides, among other tools, a layered map interface that allows for a visual representation of the policies adopted, assisting a broad range of stakeholders in understanding the global state of their Rights. This empowers them to become active agents of global change.
Problem
the frontend has already created a mock api response for the
/environments
endpoint: https://github.com/TheIOFoundation/ProjectLockdown/blob/master/MAP/public/data/environment.response.jsonThis data is for DSL_ID 1.
Proposed solution
/environments/{dsl id}
/environments/1
then the hardcoded mock data should be returned/environments/2
then no data should be returned