Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/openapi/index.tmpl
[%
USE Whostmgr;
USE JSON;
USE Encoder;
SET DOC_NAME = Encoder.safe_html_encode_str( data.doc || 'whm' );
SET PAGE_NAME = locale.maketext("OpenAPI documentation.");
SET APP_KEY = "openapi_$DOC_NAME";
SET PAGE_BASE = "/scripts12/openapi?doc=$DOC_NAME";
SET OPENAPI_HTML = cp_security_token _ "/openapi/" _ DOC_NAME _ ".openapi.html" ;
WRAPPER 'master_templates/master.tmpl'
header = PAGE_NAME,
breadcrumburl = PAGE_BASE,
base = "/scripts12/$APP_KEY/",
theme = 'bootstrap',
CJT2_EXCLUSIVE = 1,
warn_linked_nodes = 1,
app_key = APP_KEY;
%]
<script type="text/javascript">
function resizeIframe(obj) {
obj.style.height = obj.contentWindow.document.documentElement.scrollHeight + 'px';
}
</script>
<iframe width="100%" scrolling="no" onload="resizeIframe(this)" src="[% OPENAPI_HTML -%]"></iframe>
[%
# INCLUDE '/ulc/whostmgr/docroot/openapi/whm.openapi.html'
%]
[% END %]
Back to Directory
File Manager