自定义路径网址/ v1 / myApp / Google端点

时间:2017-06-12 09:43:22

标签: java google-app-engine google-cloud-endpoints

现在,我的网址是:

  

http://your_app_id.appspot.com/_ah/api/myApp/v1/

我宣布Api为:

@Api(
        name = "myApp",
        version="v1"

        )

public class myAPI {


...

}

有一些方法可以在路径或隐藏版本中翻转api名称和版本。 像这样的东西:

  

http://your_app_id.appspot.com/_ah/api/v1/myApp/

1 个答案:

答案 0 :(得分:0)

从技术上讲,如果您使所有@ApiMethod注释都包含以/v1/myApp/myApp开头的路径(请注意前导斜杠),那么它将起作用。不过我不推荐它。

相关问题