-
-
Notifications
You must be signed in to change notification settings - Fork 484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix REST API routing paths #1235
Conversation
5d0f914
to
3da3f99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't realize that these routes were pluralized using the "rest" route type. Unfortunately, we hadn't tests.
@phansys I also made mistakes and you help me fix it. Lets make sonata code better together. |
Can you merge it? |
AFAIK, the bug was introduced in 4.6.0, so I think there are more probabilities for this to help projects requiring previous versions than breaking code trusting on these "new" routes. |
Good point. 4.6.0 was release long time ago. IMO we can keep this new routes only in legacy api (in api.xml). This will corelate new routes with legacy API and will be BC. Remove will be mark as next major, so |
fcbca7d
3da3f99
to
fcbca7d
Compare
fcbca7d
to
6e9f106
Compare
Last question. Should we add it to nelmio_v3 too? Technicly we don't have becouse people should have to check it (major update for WDYT? @sonata-project/contributors |
6e9f106
to
69ed5e4
Compare
Now It can be merge. |
69ed5e4
to
69a0c6a
Compare
a497427
to
27d0f81
Compare
be20062
to
de87796
Compare
eaa2a44
to
51cd15f
Compare
f758f4b
to
0b1260a
Compare
Update src/Resources/config/routing/api_nelmio_v3.xml Co-authored-by: Javier Spagnoletti <phansys@gmail.com> Update src/Resources/config/routing/api.xml Co-authored-by: Javier Spagnoletti <phansys@gmail.com> Update src/Resources/config/routing/api_nelmio_v3.xml Co-authored-by: Vincent Langlet <VincentLanglet@users.noreply.github.com>
80c9143
to
809b341
Compare
Thanks |
Subject
Change API was in: https://github.com/sonata-project/SonataUserBundle/pull/1185/files
Revert API routing names: https://github.com/sonata-project/SonataUserBundle/pull/1194/files
This PR will revert API routing paths.
I am targeting this branch, because it must be fix here and change respect BC.
Changelog