Skip to content

Commit

Permalink
use elements UI for openapi, doesn't hang on the schemas like RapiDoc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jarohen committed Jan 30, 2024
1 parent d5c1b4c commit afc92ae
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions docs/public/drivers/http/openapi/index.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
<!doctype html>
<html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css">

<title>XTDB OpenAPI Specification</title>
<link rel="shortcut icon" href="/shared/favicon.svg" type="image/svg+xml">
</head>
<body>
<rapi-doc
spec-url="/drivers/http/openapi/openapi.yaml"
allow-authentication=false
allow-server-selection=false
allow-spec-url-load=false
allow-spec-file-load=false
allow-try=false
default-schema-tab=schema
render-style=focused
show-components="true"
show-header="false"
schema-expand-level=1
>
<img
slot="nav-logo"
src="/shared/images/logo-text.svg"
style="height: 4rem; margin: 0.5rem auto"
/>
</rapi-doc>

<elements-api
apiDescriptionUrl="openapi.yaml"
router=hash
layout=responsive
hideTryIt=true
logo="/shared/favicon.svg"
/>
</body>
</html>

0 comments on commit afc92ae

Please sign in to comment.