-
-
Notifications
You must be signed in to change notification settings - Fork 907
Allow other operation than GET for sub resources #2251
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
Comments
Wouldn't be that hard but definitely requires work.
Would expect a Anyway, for now I'd advise you to build a custom operation with a |
Would you please like to elaborate? With a sample or a link? Thanks. |
Something like: <?php
/**
* @ApiResource(
* itemOperation={
* "answer_post"= {
* "method"="POST",
* "path"="/question/{id}/answer
* }
* }
* )
*/ Then https://api-platform.com/docs/core/data-persisters/#creating-a-custom-data-persister (you can use the Request with the attribute given by |
Thank you @soyuka, I'll give a try. 😉 |
Hello @soyuka, @soullivaneuh, is there any update? I'm checking and see if I can help implementing this. It will be a great feature for the project I'm working on as we have many real use cases for it. Let me know 😃 |
closing will be supported in 3.0 |
As described in the documentation:
At the moment mean it will change, right? 😜
So, here is something planned about it? Do you think it's something easy to do?
Regards
The text was updated successfully, but these errors were encountered: