Should I cache responses from a dummy API?
Yes, where it makes sense. A dummy API is a shared resource, so avoid hammering it with thousands of requests. Caching responses teaches good practice and keeps the API responsive for everyone.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in What Is the NamasteDev Swiggy Dummy Data API and How to Use It
It is an in-house API that provides Swiggy-like restaurant listings and detailed menu information. It is designed to give learners realistic data to build a food delivery UI without needing access to a real backend.
Because building a UI with real-shaped data teaches you to handle loading, errors, pagination, and nested responses, which are skills that transfer directly to real jobs. Hardcoded arrays do not teach these things.
Fetch the endpoints using fetch or axios, store the response in state inside useEffect, and render the restaurants and menus. Handle loading and error states so the UI behaves like a real app.
Still have questions?
Browse all our FAQs or reach out to our support team
