Adds iframe to developer.cal.com (swagger-ui) into docs/public-api.mdx (#2518)

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
This commit is contained in:
Agusti Fernandez 2022-04-16 01:56:32 +02:00 committed by GitHub
parent 3b637eefaa
commit f8f3456b92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 3 deletions

@ -1 +1 @@
Subproject commit 187b97afa169f61511cbce4e75e1c6affab56f17 Subproject commit 3ad84a7c15ad41f026971eeac295781532219d11

View file

@ -6,10 +6,10 @@ const withNextra = require("nextra")({
module.exports = withNextra({ module.exports = withNextra({
async rewrites() { async rewrites() {
return [ return [
// This redirects requests recieved at / the root to the /api/ folder. // This redirects requests recieved at /api to /public-api to workaround nextjs default use of /api.
{ {
source: "/api", source: "/api",
destination: "https://developer.cal.com/", destination: "/public-api",
}, },
]; ];
}, },

View file

@ -6,6 +6,7 @@
"event-types": "Event Types", "event-types": "Event Types",
"teams": "Teams", "teams": "Teams",
"integrations": "Integrations", "integrations": "Integrations",
"public-api": "API",
"webhooks": "Webhooks", "webhooks": "Webhooks",
"settings": "Settings", "settings": "Settings",
"import": "Import", "import": "Import",

View file

@ -0,0 +1,9 @@
import Bleed from 'nextra-theme-docs/bleed'
<Bleed full>
<iframe src="https://developer.cal.com"
width="100%"
height="900px"
title="Swagger UI - Cal.com Public API"
></iframe>
</Bleed>