redoc and api doc

pull/1/head
bvn13 2021-08-12 14:41:28 +03:00
parent 038c29dfb3
commit 2accc702c7
2 changed files with 40 additions and 0 deletions

39
index.html 100644
View File

@ -0,0 +1,39 @@
<!DOCTYPE html>
<html>
<head>
<title>ReDoc</title>
<!-- needed for adaptive design -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<!--
ReDoc doesn't change outer page styles
-->
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<redoc spec-url=''></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
<script>
if (document.readyState == 'loading') {
document.addEventListener("DOMContentLoaded", () => initRedoc());
} else {
initRedoc();
}
var api_url = 'https://profee-com.github.io/external-precalcs-api/precalc-api.json';
function initRedoc() {
Redoc.init(api_url, {"pathInMiddlePanel":true});
}
</script>
</body>
</html>

1
precalc-api.json 100644

File diff suppressed because one or more lines are too long