[英]How to disable the try it function in the Azure API management developer portal?
我找到了一種隱藏 try it 按鈕的方法。 這不會完全禁用該功能,但會使其對用戶隱藏。
轉到以管理員身份登錄的開發人員門戶。
點擊右上角的編輯圖標
選擇模板 => 操作。
這應該會打開一個標記窗口。 尋找試用按鈕。 它應該是這樣的
<a class="btn btn-primary" href="{{consoleUrl}}" id="btnOpenConsole" role="button"> Try it </a>
if
/ unless
。 Azure apim 使用DotLiquid 語言作為其模板。 我最終做到了這一點。 {% 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 %}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.