20 lines
558 B
TypeScript
20 lines
558 B
TypeScript
import SwaggerUI from "swagger-ui-react";
|
|
|
|
import { SnippedGenerator, requestSnippets } from "@lib/snippets";
|
|
|
|
export default function APIDocs() {
|
|
return (
|
|
<SwaggerUI
|
|
url={process.env.NEXT_PUBLIC_SWAGGER_DOCS_URL || "https://api.cal.com/docs"}
|
|
supportedSubmitMethods={["get", "post", "put", "delete", "patch"]}
|
|
requestSnippetsEnabled={true}
|
|
requestSnippets={requestSnippets}
|
|
plugins={[SnippedGenerator]}
|
|
tryItOutEnabled={true}
|
|
syntaxHighlight={true}
|
|
docExpansion="none"
|
|
filter={true}
|
|
/>
|
|
);
|
|
}
|