Is it possible to make a call to an Azure API Rest

2019-03-30 07:36发布

I just want to be able to do a rest call using Azure Web Api Management without needing to pass the subscription-key in the url. Is that possible?

2条回答
一夜七次
2楼-- · 2019-03-30 07:57

You can do this:

API Management Portal -> Product -> click a product -> Settings -> Require Subscription

However, the subscription key provides identification to the Azure API portal. Without it, you lose analytics, security, throttling...basically every reason why you would want to want to use API Management in the first place.

Unless you have a reason to uncheck this and still use API management (which you might have), I would recommend letting the user just hit the API directly if you don't want subscription keys. I only would uncheck this checkbox if I had a special product line for demonstration purposes.

查看更多
ゆ 、 Hurt°
3楼-- · 2019-03-30 08:12

Azure API management allows for anonymous subscriptions.

Create a Product without requiring a subscription (Product -> Settings -> Require Subscription) Add your API to this product.

https://azure.microsoft.com/en-us/documentation/articles/api-management-howto-add-products/

查看更多
登录 后发表回答