Skip to content
Permalink
Browse files

Annotate collection POST methods just with one Operation annotation

  • Loading branch information...
lanthaler committed Nov 21, 2013
1 parent 5396568 commit 26ba19dbc8ed16e19dadad4eb5656605a7c01bad
Showing with 1 addition and 2 deletions.
  1. +1 −2 Resources/skeleton/crud/actions/collection_post.php.twig
@@ -8,12 +8,11 @@
{% endif %}
*
* @Hydra\Operation(
* expect = "{{ namespace }}\Entity\{{ entity }}",
* status_codes = {
* "201" = "If the {{ entity }} entity was created successfully."
* })
*
* @Hydra\Operation(expect = "{{ namespace }}\Entity\{{ entity }}")
*
* @return {{ namespace }}\Entity\{{ entity }}
*/
public function collectionPostAction(Request $request)

0 comments on commit 26ba19d

Please sign in to comment.
You can’t perform that action at this time.