Custom API endpoints use Api Platform [closed]

  api, controller, endpoint, rest, symfony

I need to create my costumer function using a controller for example article and comment I need to send request /api/article/{5} /count and in my controller call manager do Comment count for an article and return result this result was seen in swagger APIPlatform some one give me examples!!or maybe use a service or data provider, but not controller thanks!

Source: Symfony Questions