- }
-
- /**
- * @Rest\Get(
- * path = "/api/persons",
- * name = "show_persons"
- * )
- * @Rest\View()
- */
- public function showPersons(Request $request)
- {
- $em = $this->getDoctrine()->getManager();
- $persons = $em->getRepository('App:Person')->findAll();
-
- if (empty($persons)) {
- return $this->PersonNotFound();
- }
-
- return $persons;
- }
-
- /**
- * @Rest\Get(
- * path = "/api/person/{email}/friends",
- * name = "show_person_friends_by_email",
- * requirements = {"email"="\s+"}
- * )
- * @Rest\View()
- */
- public function showPersonFriendsByEmail(Request $request)
- {
+ }
+
+ /**
+ * @Rest\Get(
+ * path = "/api/persons",
+ * name = "show_persons"
+ * )
+ * @Rest\View()
+ */
+ public function showPersons(Request $request)
+ {