-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathlanding.gomd
44 lines (38 loc) · 1.29 KB
/
landing.gomd
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
35
36
37
38
39
40
41
42
43
44
<span>
{{define "landing-head"}}
{{end}}
</span>
# Welcome to the Ambassador Dev Portal
## Customizing the Portal
This content is fully customizable for your specific needs.
For details on customizing the portal, see https://www.getambassador.io/reference/dev-portal.
## Available Services
The following services are exposed through this Ambassador instance:
<table cellpadding="2em" width="100%">
<thead>
<tr>
<td><b>Service Name</b></td>
<td><b>Swagger URL</b></td>
</tr>
</thead>
<tbody>
{{range $i, $element := .S.K8sStore.Slice }}
{{if isEven $i }}
<tr style="background: rgba(86,61,124,.05);">
{{else}}
<tr>
{{end}}
<td>
<samp>{{$element.Service.Namespace}}.{{$element.Service.Name}}</samp>
</td>
<td>
{{if $element.Metadata.HasDoc}}
<a href="{{$.Prefix}}doc/{{$element.Service.Namespace}}/{{$element.Service.Name}}"><code>API Documentation</code></a>
{{else}}
<code><span style="color:red">No API Documentation</span></code>
{{end}}
</td>
</tr>
{{end}}
</tbody>
</table>