You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// In case you're using a custom collection (through a Provider), make sure you return the `Paginator` object to get the full hydra response with `view` (which contains information about first, last, next and previous page).
//
// The following example shows how to handle it using a custom Provider. You will need to use the Doctrine Paginator and pass it to the API Platform Paginator.
namespaceApp\Entity {
useApiPlatform\Metadata\ApiResource;
useApiPlatform\Metadata\GetCollection;
useApp\Repository\BookRepository;
useApp\State\BooksListProvider;
useDoctrine\ORM\MappingasORM;
/* Use custom Provider on operation to retrieve the custom collection */