标签: symfony-2.8
我将symfony2 fos路由包用于其余api的端点。
我有一个{searchTerm}关键字的url参数。
{searchTerm}
https://example.com/api/category/Production > Offices/1
并在控制器中定义了这样的路由。
@Rest\Get("/api/locations/category/{searchTerm}/{pageNumber}", requirements={"searchTerm"=".+>"})
但是它不起作用。