Sylius/Sylius — pull request #1677 by aRn0D (2014-07-01 16:49:52+00:00)
Title: [ResourceBundle] Api request should not return RedirectResponse

| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | possible
| Deprecations? | no
| Fixed tickets | -
| License | MIT
| Doc PR | -

The delete, create and update actions return a RedirectResponse, we lost some advantages of the `FosRestBundle`.
+ For a deletion, if you want to send a response with empty body (see empty_content), it is impossible to configure the HTTP code returned.
+ For a update, I got a infinite redirection loop when I tried to update a resource using the PUT method. Moreover, if your client is not a browser, it is possible that it does not support redirect response.

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 !