title: Custom Symfony Action with API Platform bundle
body: <p>I try to build an API with the Symfony bundle <a href="https://api-platform.com/" rel="nofollow noreferrer">API-Platform</a>.</p>
  
  <p>Api resource offer automatic CRUD action with the HTTP verbs POST, GET, PUT, DELETE.</p>
  
  <p>What I want is adding an endpoint to handle a custom POST action, with a custom payload/body, not depending on any resource.</p>
  
  <p>Where I block it is to add this endpoint to the automatic API-Platform documentation.</p>
  
  <p>When looking for this kind of issue on GitHub, I found that the API-Platform v2 should be able to do it.</p>
  
  <p>See <a href="https://github.com/api-platform/core/issues/385" rel="nofollow noreferrer"><strong>Issue #385 :</strong> Custom action + ApiDoc</a></p>
  
  <p>It looks like some people find the way to use NelmioApiDoc @ApiDoc annotation.</p>
  
  <p>See <a href="https://github.com/api-platform/api-platform/issues/17" rel="nofollow noreferrer"><strong>Issue #17 :</strong> Documentation for custom operation</a></p>