Ok, thank you.
I’ve created a custom module and I’ve added “custom endpoint” to the web rest api.
I’ve used these three links:
– https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/
– https://www.youtube.com/watch?v=C2twS9ArdCI
– https://www.youtube.com/watch?v=F-SnoqNYHLw
I’ve tried also to set the show_in_rest flag as suggested and it also works.
Thank you
cld