Our self-hosted instance of cal.com https://cal.pub0.org
 
 
 
 
 
Go to file
Agusti Fernandez Pardo c5b12d46af chore: rename return types to Data, import prisma from @calcom/prisma 2022-03-24 19:01:37 +01:00
__tests__ moving to nextjs/api 2022-03-24 17:02:33 +01:00
pages/api chore: rename return types to Data, import prisma from @calcom/prisma 2022-03-24 19:01:37 +01:00
.eslintrc.js moving to nextjs/api 2022-03-24 17:02:33 +01:00
.gitignore feat: Initial work on event-types, add jest for testing w node-http-mocks 2022-03-23 22:35:38 +01:00
README.md resolve conflict w main 2022-03-23 22:32:46 +01:00
babel.config.js rebase fixing conflicts 2022-03-23 22:22:57 +01:00
jest.config.ts resolve conflict w main 2022-03-23 22:32:46 +01:00
next-env.d.ts feat: inital commit 2022-03-18 14:42:42 +01:00
next.config.js rebase fixing conflicts 2022-03-23 22:22:57 +01:00
package.json chore: rename return types to Data, import prisma from @calcom/prisma 2022-03-24 19:01:37 +01:00
tsconfig.json moving to nextjs/api 2022-03-24 17:02:33 +01:00
yarn.lock feat: inital commit 2022-03-18 14:42:42 +01:00

README.md

Cal.com Public API (Enterprise Only)

This will be the new public enterprise-only API

This is the public REST api for cal.com.

NextJS + TypeScript

It's a barebones NextJS + TypeScript project leveraging the nextJS API with a pages/api folder.

No react

It doesn't have react or react-dom as a dependency, and will only be used by a redirect as a folder or subdomain on cal.com with maybe a v1 tag like:

  • v1.api.cal.com
  • api.cal.com/v1
  • app.cal.com/api/v1/

API Endpoint Validation

The API uses zod library like our main web repo. It validates that either GET query parameters or POST body content's are valid and up to our spec. It gives appropiate errors when parsing result's with schemas.

Testing with Jest + node-mocks-http