Skip to content

Commit

Permalink
fix: OpenAPI URL (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Aug 31, 2023
1 parent b89d905 commit f9add3d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/reference/openapi.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@ sidebar_label: ZetaChain HTTP API

import SwaggerUI from "swagger-ui-react";
import "swagger-ui-react/swagger-ui.css";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";

<SwaggerUI url="/data/openapi.swagger.yaml" />
export const OpenAPI = () => {
const { siteConfig } = useDocusaurusContext();
return <SwaggerUI url={siteConfig.baseUrl + "data/openapi.swagger.yaml"} />;
};

<OpenAPI />

0 comments on commit f9add3d

Please sign in to comment.