Api Platform Pagination json format

Viewed 1518

i need help with the api platform pagination in json format.

here is my api_platform.yaml

api_platform:
    allow_plain_identifiers: true
    mapping:
        paths: ['%kernel.project_dir%/src/Entity']
    formats:
        json:     ['application/json']

when i used the format hydra (default) i got something like this

"hydra:view": {
    "@id": "/api/galleries?page=1",
    "@type": "hydra:PartialCollectionView",
    "hydra:first": "/api/galleries?page=1",
    "hydra:last": "/api/galleries?page=6",
    "hydra:next": "/api/galleries?page=2"
  }

can anyone help me? if it's possible to get something like that in json format or another way to aply pagination with api platform or symfony

thank you

0 Answers
Related