【发布时间】:2013-11-20 16:01:20
【问题描述】:
是否有能力以JAX-RS 的方式使用 Endpoint 的路径参数
尝试使用相同的方法:
@ApiMethod(name="get.regex", httpMethod=HttpMethod.GET, path="{var:.*}/stuff")
public Book getRegEx(@Named("var") String sections) {
return new Book();
}
但它会导致
java.lang.IllegalArgumentException: Error while processing method {var:.*}/stuff in API test VERSION v1
Error while processing method {var:.*}/stuff in API test VERSION v1
我需要这个来实现关系导航,例如:
http://api.example.com/section1/section2/.../section_N
【问题讨论】:
标签: java google-app-engine google-cloud-endpoints