Closed
Description
Hello everyone and thanks for this great bundle!
I'm currently trying to find a way to limit the returned fields on a GET request dynamically by using a fields
list on the query string.
Standard:
GET /books
[
{
"id": 19,
"isbn": null,
"title": "test",
"description": "test",
"author": "test",
"publicationDate": "2016-11-28T14:47:44+00:00",
},
{
"id": 25,
"isbn": "9788811810148",
"title": "Odissea",
"description": "Grande classico ellenico",
"author": "Omero",
"publicationDate": "2016-11-11T18:14:58+00:00",
}
]
With filter:
GET /books?fields=id,title
[
{
"id": 19,
"title": "test",
},
{
"id": 25,
"title": "Odissea",
}
]
What would be the recommended way to solve this?