Hello everyone!
I am using "laminas-api-tools/api-tools": "^1.4.0". I am deploying a REST service (with HAL response format) on an endpoint named /countries. I currently receive the response below:
(see image 1)
However I would like to get rid of the _links property under each CountriesEntity resources, as the fetchOne method is not enabled here.
I tried using the 'force_self_link' => false in 'api-tools-hal' => [] of the module configuration, and the result look like this:
(see image 2)
But what I would like to achieve looks like this :
(see image 3)
Please mind that I would like to keep the pagination and the links to CountriesCollection.
How could I do this without removing the hydrator of my class CountriesEntity?
Here are the images:
Thank you in advance for your help!


