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 FernandezandAgusti Fernandez Pardo authored and GitHub committed 2022-04-15 23:56:32 +00:00
1 parent 3b637eefaa
commit f8f3456b92
4 files changed
+13 -3

No files matched your search

Submodule apps/api updated: 187b97afa1...3ad84a7c15.
+2 -2
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",
},
];
},
+1
View File
@@ -6,6 +6,7 @@
"event-types": "Event Types",
"teams": "Teams",
"integrations": "Integrations",
"public-api": "API",
"webhooks": "Webhooks",
"settings": "Settings",
"import": "Import",
+9
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>