<%inherit file="/layout/message.html" />
<%namespace name="lib" file="/lib.html" import="*" />
<%!
    import splunk.appserver.mrsparkle.lib.i18n as i18n
    import splunk.util

    title = 'Development Services'
%>
<%def name="header()">
    <h1>${_('Development services')}</h1>
</%def>

<h2>References</h2>
<dl>
    <dt>
        <a href="${make_url('/modules')}">View module reference</a>
        (<a href="${make_url('/modules', _qs=dict(show_wiki=1))}">wiki</a>)
    </dt>
    <dd>A listing of all of the modules currently registered with this Splunkweb instance</dd>

    <dt>
        <a href="${make_url('../static/docs/style/style-guide.html')}">UI style guide</a>
    </dt>
    <dd>A static css test page with example markup for testing styles</dd>

    <dt><a href="${make_url('/paths')}">Splunkweb endpoint reference</a></dt>
    <dd>A listing of all of the URI handlers registered with this Splunkweb instance</dd>
</dl>

<h2>XML schemas</h2>
<p>
    The following are RelaxNG schema files that define the base structure of the
    various XML files used by the UI. See the <a href="${make_url(['static', 'schema', 'README.txt'])}">README</a>
    file for more information on usage.
</p>

<table>
    <tr>
        <th>XML file type</th>
        <th colspan="3">Schema formats</th>
    </tr>
    % for name in schemaFiles:
        <tr>
            <td>${name | h}</td>
            <td><a href="${make_url(['static', 'schema', name + '.rnc'])}">RelaxNG compact</a></td>
            <td><a href="${make_url(['static', 'schema', name + '.rng'])}">RelaxNG</a></td>
        </tr>
    % endfor
</table>

<h2>Utilities</h2>
<dl>
    <dt><a href="${make_url('/debug/sso')}">SSO status</a></dt>
    <dd>Displays current single sign-on configuration information</dd>
    <dd>Note: Access to this endpoint is disabled by default, and controlled via the 'enableWebDebug' param in web.conf</dd>

    <dt><a href="${make_url('/debug/pdf')}">PDF server status</a></dt>
    <dd>Displays current PDF server configuration information</dd>

    <dt><a href="${make_url('/debug/refresh')}">EAI object refresh</a></dt>
    <dd>Refreshes splunkd EAI objects (without restart)</dd>
    <dd>Note: Access to this endpoint is restricted to roles with the 'web_debug' capability (enabled for admin role only by default) in authorize.conf</dd>

    <dt><a href="${make_url('/_bump')}">Static resource cache control</a></dt>
    <dd>Changes the static asset salt value to flush client code like JS, CSS, PNG files</dd>
    <dd>Note: Access to this endpoint is restricted to roles with the 'web_debug' capability (enabled for admin role only by default) in authorize.conf</dd>
</dl>
