title: Symfony api platform operation route prefix in YAML format
body: <p>Does anyone know how to write this annotation in YAML?</p>
  <p><a href="https://api-platform.com/docs/core/operations/#prefixing-all-routes-of-all-operations" rel="nofollow noreferrer">https://api-platform.com/docs/core/operations/#prefixing-all-routes-of-all-operations</a></p>
  <p>I've tried adding the parameter to my YAML config but it does not work.</p>
  <p>I tried this:</p>
  <pre><code>resources:
    App\Entity\Book:
      attributes:
        routePrefix: /v1
        ...
      collectionOperations:
        ...
  </code></pre>
  <p>And</p>
  <pre><code>resources:
    App\Entity\Book:
      routePrefix: /v1
      attributes:
        ...
      collectionOperations:
        ...
  </code></pre>
  <p>And this</p>
  <pre><code>resources:
    App\Entity\Book:
      properties:
        routePrefix: /v1
        ...
      collectionOperations:
        ...
  </code></pre>