[API] provide mock api response for /snapshots #394
Labels
Module: API
Issues related to the API.
Project: PLD
Issue related to Project Lockdown.
⌨ Team: Devs
Task related to Team Developers.
📑 Team: Docs
Task related to Team Documentation.
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 returnedThe text was updated successfully, but these errors were encountered: