All checks were successful
Build Docker / BuildImage (push) Successful in 1m0s
104 lines
3.5 KiB
HTML
104 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>API Documentation - HNSDoH Status</title>
|
|
<link rel="stylesheet" href="/assets/style.css">
|
|
<link rel="icon" type="image/png" href="/favicon.png">
|
|
<style>
|
|
.endpoint-card {
|
|
background-color: var(--bg-card);
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.75rem;
|
|
padding: 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
.endpoint-method {
|
|
display: inline-block;
|
|
background-color: rgba(59, 130, 246, 0.15);
|
|
color: var(--accent);
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 0.25rem;
|
|
font-weight: 700;
|
|
font-size: 0.75rem;
|
|
margin-right: 0.75rem;
|
|
}
|
|
.endpoint-route {
|
|
font-family: monospace;
|
|
font-size: 1.1rem;
|
|
color: var(--text-main);
|
|
}
|
|
.endpoint-desc {
|
|
margin-top: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
.param-table {
|
|
width: 100%;
|
|
margin-top: 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.5rem;
|
|
overflow: hidden;
|
|
}
|
|
.param-table th { background-color: rgba(0,0,0,0.2); }
|
|
.param-table td, .param-table th { padding: 0.75rem; border-bottom: 1px solid var(--border); }
|
|
.param-table tr:last-child td { border-bottom: none; }
|
|
.back-link { display: inline-block; margin-bottom: 1rem; }
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<div>
|
|
<h1>API Documentation</h1>
|
|
<div class="meta">Programmatic access to status data</div>
|
|
</div>
|
|
<div>
|
|
<a href="/" class="back-link">← Back to Dashboard</a>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="endpoints-list">
|
|
{% for endpoint in endpoints %}
|
|
<div class="endpoint-card">
|
|
<div>
|
|
<span class="endpoint-method">GET</span>
|
|
<a href="{{ endpoint.route }}" class="endpoint-route">{{ endpoint.route }}</a>
|
|
</div>
|
|
<div class="endpoint-desc">{{ endpoint.description }}</div>
|
|
|
|
{% if endpoint.parameters %}
|
|
<div class="param-table">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Parameter</th>
|
|
<th>Type</th>
|
|
<th>Description</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for param in endpoint.parameters %}
|
|
<tr>
|
|
<td><code>{{ param.name }}</code></td>
|
|
<td><code>{{ param.type }}</code></td>
|
|
<td>{{ param.description }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p>Powered by <a href="https://nathan.woodburn.au">Nathan.Woodburn/</a></p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |