Tell us what’s happening:
everything seems to work when a test the api but it didn’t pass the last test. Have someone an idee why it dosn’t work.
A Get request to the link (/api/users/:_id/logs) and with the (from, to, limit) query provided should give back all the exercises of the user with (_id) in interval of time with a limit in the number of result.
When a test the Endpoint with an interval and limit i become back the espected data.
But i didn’t pass the test:
You can add from , to and limit parameters to a GET /api/users/:_id/logs request to retrieve part of the log of any user. from and to are dates in yyyy-mm-dd format. limit is an integer of how many logs to send back.
Your project link(s)
solution: https://replit.com/@yannicknjilo/boilerplate-project-exercisetracker
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Challenge: Exercise Tracker
Link to the challenge: