aboutsummaryrefslogtreecommitdiffstats
path: root/rust/redoc
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-09-13 12:21:36 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-09-13 12:21:36 -0700
commit540eec0c826bc01af1b23042290bcfec7aa176f5 (patch)
tree685c08f4fb426ed3ef1283a01e098ff6ed8100fa /rust/redoc
parent0e1ddd94f7f210391dfc34ddcc370d63ef497c16 (diff)
downloadfatcat-540eec0c826bc01af1b23042290bcfec7aa176f5.tar.gz
fatcat-540eec0c826bc01af1b23042290bcfec7aa176f5.zip
API docs default to redoc, not swagger-ui
Diffstat (limited to 'rust/redoc')
-rw-r--r--rust/redoc/index.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/rust/redoc/index.html b/rust/redoc/index.html
new file mode 100644
index 00000000..ac75c306
--- /dev/null
+++ b/rust/redoc/index.html
@@ -0,0 +1,24 @@
+<!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='/v0/openapi2.yml'></redoc>
+ <script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
+ </body>
+</html>