Avi Ziv | 4bf6e7f | 2019-06-17 13:04:58 +0300 | [diff] [blame] | 1 | {{#each securityDefinitions}} |
| 2 | ### {{@key}} |
| 3 | {{#this}} |
| 4 | {{#ifeq type "oauth2"}} |
| 5 | <table> |
| 6 | <tr> |
| 7 | <th>type</th> |
| 8 | <th colspan="2">{{type}}</th> |
| 9 | </tr> |
| 10 | {{#if description}} |
| 11 | <tr> |
| 12 | <th>description</th> |
| 13 | <th colspan="2">{{description}}</th> |
| 14 | </tr> |
| 15 | {{/if}} |
| 16 | {{#if authorizationUrl}} |
| 17 | <tr> |
| 18 | <th>authorizationUrl</th> |
| 19 | <th colspan="2">{{authorizationUrl}}</th> |
| 20 | </tr> |
| 21 | {{/if}} |
| 22 | {{#if flow}} |
| 23 | <tr> |
| 24 | <th>flow</th> |
| 25 | <th colspan="2">{{flow}}</th> |
| 26 | </tr> |
| 27 | {{/if}} |
| 28 | {{#if tokenUrl}} |
| 29 | <tr> |
| 30 | <th>tokenUrl</th> |
| 31 | <th colspan="2">{{tokenUrl}}</th> |
| 32 | </tr> |
| 33 | {{/if}} |
| 34 | {{#if scopes}} |
| 35 | <tr> |
| 36 | <td rowspan="3">scopes</td> |
| 37 | {{#each scopes}} |
| 38 | <td>{{@key}}</td> |
| 39 | <td>{{this}}</td> |
| 40 | </tr> |
| 41 | <tr> |
| 42 | {{/each}} |
| 43 | </tr> |
| 44 | {{/if}} |
| 45 | </table> |
| 46 | {{/ifeq}} |
| 47 | {{#ifeq type "apiKey"}} |
| 48 | <table> |
| 49 | <tr> |
| 50 | <th>type</th> |
| 51 | <th colspan="2">{{type}}</th> |
| 52 | </tr> |
| 53 | {{#if description}} |
| 54 | <tr> |
| 55 | <th>description</th> |
| 56 | <th colspan="2">{{description}}</th> |
| 57 | </tr> |
| 58 | {{/if}} |
| 59 | {{#if name}} |
| 60 | <tr> |
| 61 | <th>name</th> |
| 62 | <th colspan="2">{{name}}</th> |
| 63 | </tr> |
| 64 | {{/if}} |
| 65 | {{#if in}} |
| 66 | <tr> |
| 67 | <th>in</th> |
| 68 | <th colspan="2">{{in}}</th> |
| 69 | </tr> |
| 70 | {{/if}} |
| 71 | </table> |
| 72 | {{/ifeq}} |
| 73 | {{#ifeq type "basic"}} |
| 74 | <table> |
| 75 | <tr> |
| 76 | <th>type</th> |
| 77 | <th colspan="2">{{type}}</th> |
| 78 | </tr> |
| 79 | {{#if description}} |
| 80 | <tr> |
| 81 | <th>description</th> |
| 82 | <th colspan="2">{{description}}</th> |
| 83 | </tr> |
| 84 | {{/if}} |
| 85 | </table> |
| 86 | {{/ifeq}} |
| 87 | {{/this}} |
| 88 | {{/each}} |