[英]Unable to access newly api service from developer portal in Azure api management
尝试从Azure API管理中的开发人员门户访问新创建的rest API服务时,出现以下错误
{ "statusCode": 404, "message": "Resource not found" }
According to the error code, per my experience, I think the issue was caused by using an incomplete url in your request. 根据错误代码,根据我的经验,我认为该问题是由您的请求中使用不完整的网址引起的。
For example, there is an API https://xxxx.azure-api.net/echo
in the deveploer portal https://xxxx.azure-api.net/admin/services
, as below. 例如,有一个API https://xxxx.azure-api.net/echo
在deveploer门户https://xxxx.azure-api.net/admin/services
,如下。
If I just did the GET
request for the url, I got the same error as yours, because the name echo
is only the API service name, not a complete resource name. 如果我只是对URL进行GET
请求,则会遇到与您相同的错误,因为名称echo
仅是API服务名称,而不是完整的资源名称。 In the example, the complete url should be https://xxxx.azure-api.net/echo/resource?param1=sample[&...]
, please see below. 在示例中,完整的网址应为https://xxxx.azure-api.net/echo/resource?param1=sample[&...]
,请参见下文。
So please check your API definition and use the related complete APIs for your requests. 因此,请检查您的API定义,并使用相关的完整API来满足您的要求。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.