swagger docs add params, memberships handle compoundId

This commit is contained in:
Agusti Fernandez Pardo committed 2022-03-31 22:14:37 +02:00
1 parent e6cd238803
commit 12de89294d
33 files changed
+460 -205

No files matched your search

+4 -2
View File
@@ -1,12 +1,14 @@
import pjson from "@/package.json";
import { withSwagger } from "next-swagger-doc";
const swaggerHandler = withSwagger({
definition: {
openapi: "3.0.0",
info: {
title: "Cal.com Public API",
version: "1.0.0",
title: `${pjson.name}: ${pjson.description}`,
version: pjson.version,
},
tags: ["users", "teams"],
},
apiFolder: "pages/api",
});