On the Azure API management developer portal, there is a "Try it" feature to test api request in your browser.
The try it button:
Is it possible to disable/remove this feature? I don't want developers to be able to post test data inside our production environment.
I found a way to hide the try it button. This doesn't completely disable the feature, but makes it hidden for the user.
Go to the Developer portal logged in as an admin.
Click on the Edit icon on the top right
Select Template => Operation.
This should open a markup window. Look for the try it button. It should look like this
<a class="btn btn-primary" href="{{consoleUrl}}" id="btnOpenConsole" role="button">
Try it
</a>
if
/unless
. Azure apim uses the DotLiquid language for its templates. I ended up doing this.{% assign apiNamePrefix = api.name | slice: 0, 4 %}
{% if apiNamePrefix == 'TEST' %}
<a class="btn btn-primary" href="{{consoleUrl}}" id="btnOpenConsole" role="button">
Try it
</a>
{% endif %}