Azure / APICenter-Portal-Starter

Reference implementation of API Center portal for a web-based API discovery and consumption experience
https://learn.microsoft.com/en-us/azure/api-center/enable-api-center-portal
MIT License
23 stars 78 forks source link

Data Plane API not be consistent with service call #26

Open wenytang-ms opened 4 months ago

wenytang-ms commented 4 months ago

Hi team In this doc, it says that The portal uses the [Azure API Center data plane API](https://learn.microsoft.com/en-us/rest/api/dataplane/apicenter/operation-groups) to retrieve data from your API center. But in the runtime, I tried with the json configuration

{
  "dataApiHostName": "<service name>.data.<region>.azure-apicenter.ms/workspaces/default",
  "title": "API portal",
  "authentication": {
      "clientId": "<client ID>",
      "tenantId": "<tenant ID>",
      "scopes": ["https://azure-apicenter.net/user_impersonation"],
      "authority": "https://login.microsoftonline.com/"
  }
}

it seems not same as the Data Plane Api's domain defined as https://{serviceName}.data.azure-apicenter.net like such as List All APIs

I'm confuse that is there any mistake?

wenytang-ms commented 4 months ago

I guess this is a mistake that doc teams leave an outdate domain in the rest api.

pierceboggan commented 4 months ago

Thanks for the report! We're updating our documentation to resolve this now.

DBuijse commented 4 months ago

I saw this issue and realized I also probably used the wrong domain. After configuring it to the "https://{serviceName}.data.azure-apicenter.net" format I no longer get a 404 but a (failed)net::ERR_EMPTY_RESPONSE .