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
/snapshots
endpoint: https://github.com/TheIOFoundation/ProjectLockdown/blob/master/MAP/public/data/snapshot.jsonThis data is for DSL_ID 1 with a date range from 2020-08-18 to 2020-08-24 & 2020-09-18 to 2020-09-24
Proposed solution
/snapshots/{dsl id}/{DateStart}/{DateEnd}
/snapshots/1/1597708800/1598227200
then the hardcoded mock data with August data and NOT September data should be returned2
as DSL id, then no data should be returned