Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
479 stars 306 forks source link

Enable/Disable API console for specific API's (Feature Request) #2332

Open LauraXiulan opened 7 months ago

LauraXiulan commented 7 months ago

Currently when toggling the Enable API console button, it is turned on and off for all API's. We would like to be able to turn off the Try it console for some of the API's we provide, but not for all of them. Especially for our endpoints that return Excel/CSV files. For those the Try it console is currently unusable because the response is printed out in the screen instead of downloaded.

We are using the managed developer portal and are not planning to self-host it.

malincrist commented 7 months ago

Hello @LauraXiulan , thank you for the feature request. We do not have such thing in plan yet. However, I believe you can achieve this behavior by implementing a custom widget, where you can manipulate the try it button based on your specific needs. You can find more info here.