Adjust developer docs front page and add JSON links on HTTP page
This commit is contained in:
parent
b91939380f
commit
9788e0d2b7
2 changed files with 17 additions and 5 deletions
|
|
@ -64,6 +64,10 @@
|
|||
<code>http://microscope.local:5000/docs</code>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
You can also directly inspect the OpenAPI JSON file <a href="./openapi.json">openapi.json</a> or the WC3 "Web of Things" Thing Descriptions JSON <a href="./thing_descriptions.json">thing_descriptions.json</a>
|
||||
</p>
|
||||
|
||||
<aside>
|
||||
Replace <strong>microscope.local</strong> with your microscope's hostname or IP address
|
||||
if your network uses a different name.
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>OpenFlexure Microscope Server API Docs</title>
|
||||
<title>OpenFlexure Microscope Server Developer Documentation</title>
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
|
||||
|
||||
|
|
@ -21,9 +21,15 @@ body {
|
|||
padding: 0 1.5rem;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
max-width: 700px;
|
||||
padding: 2rem;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #c5247f;
|
||||
margin-bottom: 0.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a {
|
||||
|
|
@ -49,12 +55,14 @@ a:hover {
|
|||
<body>
|
||||
|
||||
<div class="content">
|
||||
<h1>OpenFlexure Microscope Server API Docs</h1>
|
||||
<h1>OpenFlexure Microscope Server Developer Documentation</h1>
|
||||
<div class="main-content">
|
||||
<p>Select documentation:</p>
|
||||
|
||||
<a href="./http/index.html">HTTP API (Swagger)</a>
|
||||
<a href="./python/index.html">Python API</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue