FOSRestBundle icon indicating copy to clipboard operation
FOSRestBundle copied to clipboard

Update version match documentation

Open kjkooistra-youwe opened this issue 5 years ago • 2 comments

Matching version argument does not work, as it's null. Use requirements instead.

Also see https://github.com/symfony/symfony/issues/38034

kjkooistra-youwe avatar Sep 02 '20 10:09 kjkooistra-youwe

I think we should have both examples. If the version is not derived from the path, you will still need to use the condition option. You can take a look at the Version2Controller class in the tests which contains examples for both.

xabbuh avatar Sep 02 '20 10:09 xabbuh

Hmm, but won't that require a more structural update? How will that work with multiple options enabled, for instance? https://symfony.com/doc/3.x/bundles/FOSRestBundle/versioning.html#how-to-version-your-api

kjkooistra-youwe avatar Sep 02 '20 11:09 kjkooistra-youwe