Is there a way to implement the fake-db feature in Angular while utilizing this resource? I need it to support an API response structure like the one below for list retrieval.
// GET 'api/outlets'
{
data: [
{'id':1, 'name': 'Outlet 1', ... },
{'id':2, 'name': 'Outlet 2', ... },
{'id':3, 'name': 'Outlet 3', ... },
],
}
And also for fetching details.
// GET 'api/outlets/2'
{
data: {
'id':2,
'name': 'Outlet 2',
...
}
}