Skip to content

Scheduling infrastructure for absolutely everyone.

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

Agusti Fernandezf8f3456b9201
diff --git a/apps/api b/apps/api
index 187b97afa16..3ad84a7c15a 160000
--- a/apps/api
+++ b/apps/api
@@ -1 +1 @@
-Subproject commit 187b97afa169f61511cbce4e75e1c6affab56f17
+Subproject commit 3ad84a7c15ad41f026971eeac295781532219d11
diff --git a/apps/docs/next.config.js b/apps/docs/next.config.js
index e47ae62d6a0..c9e71be6b89 100644
--- a/apps/docs/next.config.js
+++ b/apps/docs/next.config.js
@@ -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",
},
];
},
diff --git a/apps/docs/pages/meta.json b/apps/docs/pages/meta.json
index 16d5067b32e..4d37384fa7a 100644
--- a/apps/docs/pages/meta.json
+++ b/apps/docs/pages/meta.json
@@ -6,6 +6,7 @@
"event-types": "Event Types",
"teams": "Teams",
"integrations": "Integrations",
+ "public-api": "API",
"webhooks": "Webhooks",
"settings": "Settings",
"import": "Import",
diff --git a/apps/docs/pages/public-api.mdx b/apps/docs/pages/public-api.mdx
new file mode 100644
index 00000000000..385d5bca587
--- /dev/null
+++ b/apps/docs/pages/public-api.mdx
@@ -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>