* @Route("/vehicle/{id}", methods={"GET"})
* @Route("/vehicle/categories/", methods={"GET"})
When I try to reach my API vehicleCategories without passing any parameters, symfony takes the first vehicle API and interprets “categories” as a parameter. How can I avoid this behaviour?
Both APIs are in the same controller.
Source: Symfony Questions
Was this helpful?
0 / 0