Getting Data from a key in a REST response
I'm trying to populate a Refine MUI table with data from the Django Rest Framework API. The response from the API is in the following format:
{
"count": 41,
"next": "http://localhost:8000/api/captures?_end=25&_start=25",
"previous": null,
"results": [
{
"id": 4,
.......
}
]
}
How do I get the data grid to use just the results array without rewriting the API?
{
"count": 41,
"next": "http://localhost:8000/api/captures?_end=25&_start=25",
"previous": null,
"results": [
{
"id": 4,
.......
}
]
}
How do I get the data grid to use just the results array without rewriting the API?
