-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[ResourceBundle] Api request should not return RedirectResponse #1677
Conversation
👍 |
@pjedrzejewski updated! |
@@ -30,7 +30,8 @@ | |||
"friendsofsymfony/rest-bundle": "~1.0", | |||
"jms/serializer-bundle": "~0.12", | |||
"white-october/pagerfanta-bundle": "1.0.*", | |||
"doctrine/doctrine-bundle": "~1.3@dev" | |||
"doctrine/doctrine-bundle": "~1.3@dev", | |||
"willdurand/hateoas-bundle": "@stable" |
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.
You need to register that bundle in Kernel to be able to use it functionality.
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.
This must be added to main composer.json
file too.
@Arn0d Could you update composer.lock to include hateoas stuff? Can't see it in the diff. :) |
Just run |
[ResourceBundle] Api request should not return RedirectResponse
I will do this cause I need it. :D Thanks Arnaud! |
Sorry, I was doing several things at the same time ! ✌️ |
No worries! :) |
The delete, create and update actions return a RedirectResponse, we lost some advantages of the
FosRestBundle
.I know that some methods has a lot of return has a lot of return, some developer does not like it but I have not problem with it. I need it ASAP for a project so I am here if you want to talk about this !