设置Google Cloud API端点的路径时找不到404 404

时间:2015-01-15 22:05:51

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

我正在定义这样的Google-Cloud端点:

@ApiMethod(
        name = "listcontacts",
        path = "contacts/myUser",
        httpMethod = ApiMethod.HttpMethod.GET)
public CollectionResponse<myUser> listContacts(@Named("phones")String[] phones) {

编译并上传到Google Cloud是成功的,但每当我尝试从客户端调用此端点时。我找不到404:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 404 Not Found

但是,如果我将路径设置为“myUser”,它将正常工作。问题是它与另一个具有相同路径的api方法发生冲突。

0 个答案:

没有答案
相关问题