This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-18 15:15:19 +00:00
|
|
|
import React from "react";
|
|
|
|
import Layout from "@theme/Layout";
|
|
|
|
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
|
|
|
|
import useBaseUrl from "@docusaurus/useBaseUrl";
|
|
|
|
|
|
|
|
function APIBrowser() {
|
|
|
|
const context = useDocusaurusContext();
|
|
|
|
const { siteConfig = {} } = context;
|
2021-04-18 15:58:36 +00:00
|
|
|
import('rapidoc');
|
2021-04-18 15:15:19 +00:00
|
|
|
return (
|
|
|
|
<Layout title="API Browser" description={siteConfig.tagline}>
|
|
|
|
<rapi-doc
|
2021-06-07 20:19:11 +00:00
|
|
|
spec-url={useBaseUrl("schema.yaml")}
|
2021-04-18 15:15:19 +00:00
|
|
|
allow-try="false"
|
|
|
|
show-header="false"
|
|
|
|
theme="dark"
|
|
|
|
render-style="view"
|
|
|
|
primary-color="#fd4b2d"
|
|
|
|
allow-spec-url-load="false"
|
|
|
|
allow-spec-file-load="false">
|
|
|
|
</rapi-doc>
|
|
|
|
</Layout>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default APIBrowser;
|