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

Co-authored-by: Agusti Fernandez Pardo <git@agusti.me>
pull/2522/head
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({
async rewrites() {
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",
destination: "https://developer.cal.com/",
destination: "/public-api",
},
];
},

View File

@ -6,6 +6,7 @@
"event-types": "Event Types",
"teams": "Teams",
"integrations": "Integrations",
"public-api": "API",
"webhooks": "Webhooks",
"settings": "Settings",
"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>