user2143039
user2143039

Reputation: 71

Unable to access newly api service from developer portal in Azure api management

While trying to access newly created rest API service from developer portal in Azure API management, I am getting below error

{ "statusCode": 404, "message": "Resource not found" }

Upvotes: 1

Views: 3988

Answers (1)

Peter Pan
Peter Pan

Reputation: 24138

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.

enter image description here

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. In the example, the complete url should be https://xxxx.azure-api.net/echo/resource?param1=sample[&...], please see below.

enter image description here

So please check your API definition and use the related complete APIs for your requests.

Upvotes: 2

Related Questions