Permalink
Browse files

Controller methods should have just one Operation annotation

  • Loading branch information...
1 parent 36a9730 commit c82549f7d985fbdf739a4eb763bfa611e2b6844f @lanthaler committed Nov 21, 2013
@@ -45,12 +45,11 @@ public function collectionGetAction()
* @Method("POST")
*
* @Hydra\Operation(
+ * expect = "ML\DemoBundle\Entity\Issue",
* status_codes = {
* "201" = "If the Issue entity was created successfully."
* })
*
- * @Hydra\Operation(expect = "ML\DemoBundle\Entity\Issue")
- *
* @return ML\DemoBundle\Entity\Issue
*/
public function collectionPostAction(Request $request)
@@ -44,12 +44,11 @@ public function collectionGetAction()
* @Method("POST")
*
* @Hydra\Operation(
+ * expect = "ML\DemoBundle\Entity\User",
* status_codes = {
* "201" = "If the User entity was created successfully."
* })
*
- * @Hydra\Operation(expect = "ML\DemoBundle\Entity\User")
- *
* @return ML\DemoBundle\Entity\User
*/
public function collectionPostAction(Request $request)

0 comments on commit c82549f

Please sign in to comment.