-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathsummary.hbs
34 lines (34 loc) · 1007 Bytes
/
summary.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{!--
Renders a summary of this services ignoring tags, containing references to all operations and paths
@todo params
@api public
--}}
<h2 id="swagger--summary-no-tags">Summary</h2>
<table class="table table-bordered table-condensed swagger--summary">
<thead>
<tr>
<th>Path</th>
<th>Operation</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{{#eachSorted paths}}
{{#eachSorted .}}
<tr>
{{#if @first}}
<td class="swagger--summary-path" rowspan="{{@length}}">
<a href="#path-{{htmlId @../key}}">{{@../key}}</a>
</td>
{{/if}}
<td>
<a href="#operation-{{htmlId @../key}}-{{htmlId @key}}">{{toUpperCase @key}}</a>
</td>
<td>
{{md summary}}
</td>
</tr>
{{/eachSorted}}
{{/eachSorted}}
</tbody>
</table>