1
- {{= data.tags.section }}
2
- <h1 id=" {{=data.title_prefix}}" >{{=data.api.info && data.api.info.title}} {{=data.version}}</h1>
3
-
4
- > XScroll down for {{? data.header.language_tabs.length}}code samples, {{?}}example requests and responses.{{? data.header.language_tabs.length}} Select a language for code samples from the tabs above or the mobile navigation menu.{{?}}
5
-
6
- {{? data.api.info && data.api.info.description}}{{=data.api.info.description}}{{?}}
7
-
8
- {{? data.api.servers }}
9
- Base URLs:
10
- {{~data.api.servers :s}}
11
- * <a href=" {{=s.url}}" >{{=s.url}}</a>
12
- {{ for(var v in s.variables) { }}
13
- * **{{=v}}** - {{=s.variables[v].description||''}} Default: {{=s.variables[v].default}}
14
- {{? s.variables[v].enum}}
15
- {{~ s.variables[v].enum :e}}
16
- * {{= e}}
17
- {{~}}
18
- {{?}}
19
- {{ } }}
20
- {{~}}
21
- {{?}}
22
-
23
- {{? data.api.info && data.api.info.termsOfService}}<a href=" {{=data.api.info.termsOfService}}" >Terms of service</a>{{?}}
24
- {{? data.api.info && data.api.info.contact}}{{? data.api.info.contact.email}}Email: <a href=" mailto:{{=data.api.info.contact.email}}" >{{=data.api.info.contact.name || 'Support'}}</a> {{?}}{{? data.api.info.contact.url}}Web: <a href=" {{=data.api.info.contact.url}}" >{{= data.api.info.contact.name || 'Support'}}</a> {{?}}{{?}}
25
- {{? data.api.info && data.api.info.license}}{{? data.api.info.license.url}}License: <a href=" {{=data.api.info.license.url}}" >{{=data.api.info.license.name}}</a>{{??}} License: {{=data.api.info.license.name}}{{?}}{{?}}
26
- {{= data.tags.endSection }}
27
-
28
- {{? data.api.components && data.api.components.securitySchemes }}
29
- {{# def.security}}
30
- {{?}}
1
+ {{? data.api.components && data.api.components.securitySchemes }}{{# def.security}}{{?}}
31
2
32
3
{{ for (var r in data.resources) { }}
33
4
{{ data.resource = data.resources[r]; }}
34
5
35
6
{{= data.tags.section }}
36
- <h1 id= " {{=data.title_prefix+'-'+data.utils.slugify(r)}} " >{{= r}}</h1>
7
+ # {{= r}}
37
8
38
9
{{? data.resource.description }}{{= data.resource.description}}{{?}}
39
10
40
- {{? data.resource.externalDocs}}
41
- <a href=" {{=data.resource.externalDocs.url}}" >{{=data.resource.externalDocs.description||'External documentation'}}</a>
42
- {{?}}
43
-
44
11
{{ for (var m in data.resource.methods) { }}
45
12
{{ data.operationUniqueName = m; }}
46
13
{{ data.method = data.resource.methods[m]; }}
@@ -62,12 +29,7 @@ Base URLs:
62
29
{{ var schema = data.api.components.schemas[s]; }}
63
30
64
31
{{= data.tags.section }}
65
- <h2 id=" tocS_{{=s}}" >{{=s}}</h2>
66
- {{ /* backwards compatibility */ }}
67
- <a id=" schema{{=s.toLowerCase()}}" ></a>
68
- <a id=" schema_{{=s}}" ></a>
69
- <a id=" tocS{{=s.toLowerCase()}}" ></a>
70
- <a id=" tocs{{=s.toLowerCase()}}" ></a>
32
+ # # {{=s}}
71
33
72
34
{{? data.options.yaml }}
73
35
```yaml
@@ -105,7 +67,7 @@ Base URLs:
105
67
106
68
{{? block.rows.length}}|Name|Type|Required|Restrictions|Description|
107
69
|-- -|-- -|-- -|-- -|-- -|{{?}}
108
- {{~ block.rows :p}}|{{=p.displayName}}|{{=p.safeType }}|{{=p.required}}|{{=p.restrictions||'none '}}|{{=p.description||'none '}}|
70
+ {{~ block.rows :p}}|{{=p.displayName}}|{{? p.$ref}}{{ =p.$ref}}{{?}}{{? !p.$ref}}{{=p.type}}{{? }}|{{=p.required}}|{{=p.restrictions||'none '}}|{{=p.description||'none '}}|
109
71
{{~}}
110
72
{{~}}
111
73
{{? (blocks[0].rows.length === 0) && (blocks.length === 1) }}
0 commit comments