Y
Y
YaRobot2017-03-29 15:10:39
Node.js
YaRobot, 2017-03-29 15:10:39

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

2 answer(s)
D
Dima Pautov, 2018-02-14
@NeTLeaDeR

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

D
Dmitry MiksIr, 2017-03-29
@YaRobot

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 question

Ask a Question

731 491 924 answers to any question