Creating Mock Data and Returning Object Lists as JSON
Let's create in-memory mock data and build a GET endpoint that returns a list of objects in JSON format. This approach lets us test the API logic without needing a real database.