cal.pub0.org/apps/swagger/pages/index.tsx

20 lines
558 B
TypeScript
Raw Normal View History

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