6

JAX-RSの方法でエンドポイントのパス パラメータを使用する機能はありますか

同じアプローチを使用しようとしました:

@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
4

1 に答える 1