如何让openapi平台路径参数出现在界面中

how to make openapi platform path parameters appear in interface

我无法在类似

的路由中创建包含路径参数的集合路由

/api/myEntity/{var1}/{var2}

我在我的实体中创建了注释,如下所示

collectionOperations={
 *         "get"={
 *             "method"="GET",
 *             "path"="/smyEntity/{var1}/{var2}",
 *             "controller"=CustomController::class,
 *             "pagination_enabled"=false,
 *             "read"=false,
 *             "openapi_context"= {
 *                 "parameters" = {
 *                     {
 *                         "name" = "var1",
 *                         "in" = "path",
 *                         "type" = "string",
 *                     },
 *                     {
 *                         "name" = "var2",
 *                         "in" = "path",
 *                         "type" = "string"
 *                     }
 *                 }
 *             }
 *         }

我已经创建了自定义控制器,但路径参数没有出现在 api 管理界面中

这适用于 v2.5.9,但自 2.6.0 起无效

我暂时坚持2.5.9