github.com/qubitproducts/logspray@v0.2.14/server/swagger-ui/src/main/template/operation.handlebars (about)

     1    <ul class='operations' >
     2      <li class='{{{escape method}}} operation' id='{{{escape parentId}}}_{{{escape nickname}}}'>
     3        <div class='heading'>
     4          <h3>
     5            <span class='http_method'>
     6            <a href='#!/{{sanitize encodedParentId}}/{{sanitize nickname}}' class="toggleOperation">{{{escape method}}}</a>
     7            </span>
     8            <span class='path'>
     9            <a href='#!/{{sanitize encodedParentId}}/{{sanitize nickname}}' class="toggleOperation {{#if deprecated}}deprecated{{/if}}">{{{escape path}}}</a>
    10            </span>
    11          </h3>
    12          <ul class='options'>
    13            <li>
    14            <a href='#!/{{sanitize encodedParentId}}/{{sanitize nickname}}' class="toggleOperation"><span class="markdown">{{{escape summary}}}</span></a>
    15            </li>
    16          </ul>
    17        </div>
    18        <div class='content' id='{{sanitize encodedParentId}}_{{sanitize nickname}}_content' style='display:none'>
    19          {{#if deprecated}}
    20              <h4><span data-sw-translate>Warning: Deprecated</span></h4>
    21          {{/if}}
    22          {{#if description}}
    23          <h4><span data-sw-translate>Implementation Notes</span></h4>
    24          <div class="markdown">{{{sanitize description}}}</div>
    25          {{/if}}
    26          {{#if security}}
    27              <div class='authorize-wrapper authorize-wrapper_operation'></div>
    28          {{/if}}
    29          {{#if type}}
    30            <div class="response-class">
    31              <h4><span data-sw-translate>Response Class</span> (<span data-sw-translate>Status</span> {{{escape successCode}}})</h4>
    32                {{#if successDescription}}<div class="markdown">{{{sanitize successDescription}}}</div>{{/if}}
    33              <p><span class="model-signature" /></p>
    34              <br/>
    35              <div class="response-content-type" />
    36              </div>
    37          {{/if}}
    38  
    39          {{#if headers}}
    40            <h4 data-sw-translate>Headers</h4>
    41            <table class="headers">
    42              <thead>
    43                <tr>
    44                  <th style="width: 100px; max-width: 100px" data-sw-translate>Header</th>
    45                  <th style="width: 310px; max-width: 310px" data-sw-translate>Description</th>
    46                  <th style="width: 200px; max-width: 200px" data-sw-translate>Type</th>
    47                  <th style="width: 320px; max-width: 320px" data-sw-translate>Other</th>
    48                </tr>
    49              </thead>
    50              <tbody>
    51                {{#each headers}}
    52                <tr>
    53                  <td>{{@key}}</td>
    54                  <td>{{{sanitize this.description}}}</td>
    55                  <td>{{{escape this.type}}}</td>
    56                  <td>{{{escape this.other}}}</td>
    57                </tr>
    58                {{/each}}
    59              </tbody>
    60            </table>
    61          {{/if}}
    62  
    63          <form accept-charset='UTF-8' class='sandbox'>
    64            <div style='margin:0;padding:0;display:inline'></div>
    65            {{#if parameters}}
    66            <h4 data-sw-translate>Parameters</h4>
    67            <table class='fullwidth parameters'>
    68            <thead>
    69              <tr>
    70              <th style="width: 100px; max-width: 100px" data-sw-translate>Parameter</th>
    71              <th style="width: 310px; max-width: 310px" data-sw-translate>Value</th>
    72              <th style="width: 200px; max-width: 200px" data-sw-translate>Description</th>
    73              <th style="width: 100px; max-width: 100px" data-sw-translate>Parameter Type</th>
    74              <th style="width: 220px; max-width: 230px" data-sw-translate>Data Type</th>
    75              </tr>
    76            </thead>
    77            <tbody class="operation-params">
    78  
    79            </tbody>
    80            </table>
    81            {{/if}}
    82            {{#if responseMessages}}
    83            <div style='margin:0;padding:0;display:inline'></div>
    84            <h4 data-sw-translate>Response Messages</h4>
    85            <table class='fullwidth response-messages'>
    86              <thead>
    87              <tr>
    88                <th data-sw-translate>HTTP Status Code</th>
    89                <th data-sw-translate>Reason</th>
    90                <th data-sw-translate>Response Model</th>
    91                <th data-sw-translate>Headers</th>
    92              </tr>
    93              </thead>
    94              <tbody class="operation-status">
    95              </tbody>
    96            </table>
    97            {{/if}}
    98            {{#if isReadOnly}}
    99            {{else}}
   100            <div class='sandbox_header'>
   101              <input class='submit' type='submit' value='Try it out!' data-sw-translate/>
   102              <a href='#' class='response_hider' style='display:none' data-sw-translate>Hide Response</a>
   103              <span class='response_throbber' style='display:none'></span>
   104            </div>
   105            {{/if}}
   106          </form>
   107          <div class='response' style='display:none'>
   108            <h4 class='curl'>Curl</h4>
   109            <div class='block curl'></div>
   110            <h4 data-sw-translate>Request URL</h4>
   111            <div class='block request_url'></div>
   112            {{#if showRequestHeaders}}
   113            <h4 data-sw-translate>Request Headers</h4>
   114            <div class='block request_headers'></div>
   115            {{/if}}
   116            <h4 data-sw-translate>Response Body</h4>
   117            <div class='block response_body'></div>
   118            <h4 data-sw-translate>Response Code</h4>
   119            <div class='block response_code'></div>
   120            <h4 data-sw-translate>Response Headers</h4>
   121            <div class='block response_headers'></div>
   122          </div>
   123        </div>
   124      </li>
   125    </ul>