The API endpoints seem a bit too verbose for me, and I would like to simplify the return values by reducing the number of nested levels. This is my current API:
{
"data": [
{
"id": "string",
"attributes": {
"text": "string",
"createdBy": {
"data": {
"id": "string",
"attributes": {
"firstname": "string"
}
}
}
],
"meta": {
"pagination": {
"page": 0,
"pageSize": 25,
"pageCount": 1,
"total": 0
}
}
}
Instead, I would just simply prefer the return to be:
[
{
"id": "string",
"text": "string",
"createdBy": {
"id": "string",
"firstname": "string"
}
]
Is this simplification possible? Thank you in advance.