I am working on an api that is usigin api-platform. I've configured page size. I've seen also thatn in jsonld format is visible the number of total items. I need to get same number but in json format. Is it configurable? If yes, ... how? For completeness, instead of see results in the format:
[
{
"id": "42",
"field": "value"
}, {
"id": "42",
"field": "value"
}
]
{
data: [
{
"id": "42",
"field": "value"
}, {
"id": "42",
"field": "value"
}
],
"totalItems": 42
}
I think you need
jsonapi
format.API Platform config:
or some cheating