Show both http and python api on pages

This commit is contained in:
Julian Stirling 2026-02-12 16:36:55 +00:00
parent 4071b81d5f
commit 7cce823bd1
4 changed files with 151 additions and 1 deletions

60
apidocs/index.html Normal file
View file

@ -0,0 +1,60 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenFlexure Microscope Server API Docs</title>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Open Sans', sans-serif;
background: #fff;
color: #2a2a2a;
margin: 0;
}
.content {
max-width: 700px;
margin: 4rem auto;
padding: 0 1.5rem;
}
h1 {
color: #c5247f;
margin-bottom: 0.5rem;
}
a {
display: block;
margin: 1rem 0;
padding: 0.75rem 1rem;
text-decoration: none;
border: 2px solid #c5247f;
color: #c5247f;
font-weight: 600;
border-radius: 6px;
width: fit-content;
transition: 0.15s ease;
}
a:hover {
background: #c5247f;
color: #fff;
}
</style>
</head>
<body>
<div class="content">
<h1>OpenFlexure Microscope Server API Docs</h1>
<p>Select documentation:</p>
<a href="./http">HTTP API (Swagger)</a>
<a href="./python">Python API</a>
</div>
</body>
</html>