Answer the question
In order to leave comments, you need to log in
Symfony ApiDoc FOSRestBundle and NelmioApiDocBundle (swagger)?
Good afternoon.
Need help implementing versioning for Symfony.
I am using FOSRestBundle and NelmioApiDocBundle .
Now I have a ready and working API for the base url /api
I want to implement different versions of api for the routes /api/v1 and /api/v2 .
Accordingly, it is necessary to somehow resolve all this in the configs, but I did not find an example in the documentation.
Maybe there are some tags or config parameters for the correct implementation of versioning?
Thank you.
Answer the question
In order to leave comments, you need to log in
Your node does not understand arrow functions.
Option 3:
1) Update the node
2) Use nvm
3) Use babel
What exactly to use is up to you
Sorry for the previous answer, I didn't quite get the point. No, Nelmio can't do that. It only knows how to show object versions if they are used with the JMS Serializer. Partially displaying different controller actions depending on the version can be done through view.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question