e071084ebe
govulncheck / govulncheck (push) Has been cancelled
Lint / golangci-lint (push) Has been cancelled
Run Tests / Unit Tests (push) Has been cancelled
Run Tests / Etcd Integration Tests (push) Has been cancelled
Harness (E2E) / Harnesses (mock LLM) (push) Has been cancelled
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Has been cancelled
33 lines
1.7 KiB
HTML
33 lines
1.7 KiB
HTML
{{define "content"}}
|
|
<h2 class="text-2xl font-bold mb-4">API</h2>
|
|
<p style="background:#f8f8e8; border:1px solid #e0e0b0; padding:1em; margin-bottom:2em; font-size:1.05em; border-radius:6px;">
|
|
<b>Authentication Required:</b> Include an <b>Authorization: Bearer <token></b> header with all <code>/api/...</code> requests.
|
|
Generate tokens on the <a href="/auth/tokens">Tokens page</a>.
|
|
</p>
|
|
{{range .Services}}
|
|
<h3 id="{{.Anchor}}" style="margin-top:2.5em; margin-bottom:0.8em; font-size:1.15em; font-weight:bold; border-bottom:2px solid #ddd; padding-bottom:0.4em;">{{.Name}}</h3>
|
|
{{if .Endpoints}}
|
|
{{range .Endpoints}}
|
|
<div style="margin-bottom:1.8em; padding:1.2em 1.4em; background:#fafbfc; border-radius:7px; border:1px solid #e5e5e5;">
|
|
<div style="display:flex; align-items:baseline; gap:1em; margin-bottom:0.6em;">
|
|
<span style="font-size:1.08em; font-weight:600;"><a href="{{.Path}}" class="micro-link">{{.Name}}</a></span>
|
|
<code style="font-size:0.92em; color:#666;">{{.Path}}</code>
|
|
</div>
|
|
<div style="display:flex; gap:2.5em; flex-wrap:wrap;">
|
|
<div style="flex:1; min-width:220px;">
|
|
<div style="font-weight:600; font-size:0.92em; color:#555; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:0.3em;">Request</div>
|
|
{{.Params}}
|
|
</div>
|
|
<div style="flex:1; min-width:220px;">
|
|
<div style="font-weight:600; font-size:0.92em; color:#555; text-transform:uppercase; letter-spacing:0.05em; margin-bottom:0.3em;">Response</div>
|
|
{{.Response}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{end}}
|
|
{{else}}
|
|
<p style="color:#888;">No endpoints</p>
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|