Back End Development and APIs Projects - Exercise Tracker

Tell us what’s happening:
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.
what to do in this case. give code pls

this is thing is not
Your project link(s)

solution: boilerplate-project-exercisetracker (3) - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

Challenge: Back End Development and APIs Projects - Exercise Tracker

Link to the challenge:

Welcome to FCC Forum @navaneethkrishna11 !

Please tell us what the problem is in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Happy coding!

Your limit is not working.

Request URL: https://boilerplate-project-exercisetracker-3.navaneethkris15.repl.co/api/users/1fwefhlo0dyhe1/logs?limit=1
Response: {
    "id": "1fwefhlo0dyhe1",
    "username": "fcc_test_16979136649",
    "log": [
        {
            "description": "test",
            "duration": 60,
            "date": "Mon Jan 01 1990"
        },
        {
            "description": "test",
            "duration": 60,
            "date": "Wed Jan 03 1990"
        }
    ],
    "count": 2
}
1 Like