Closed elangosundar closed 4 years ago
Your example is missing the controller for v2. Also you are setting condition: "request.attributes.get('version') == 'v1'"
on the route which overwrites the @Version("v1")
annotation on the controller. So there is likely a conflict.
Closing as the @Version
annotation is deprecated (#1954)
I have tried the symfony4 with fos bundle rest api versioning and api versioning alone is not working. Please find my below code and i have missed out anything.
My Url :
when we accessing the above urls always returning the same set of reults v1.