在API方法的 Integration Request 部分设置 URL Query String Parameters 时,看起来我有the following options

  • 引用 method.request.{path|querystring|header}.{var-name} 中的值

  • 使用固定的单引号字符串

即使API网关allows complex mappings on the body via VTL,它看起来像querystring, header, and path variables do not have this option .

我具体的用例是我想用 'read'+method.request.path.folder 填充 prefix 的查询参数: 'read'+method.request.path.folder ,所以所有 GET 请求都以前缀开头(用户不必指定该前缀) .

有没有办法让我使用API网关实现这一目标?