Scheduling infrastructure for absolutely everyone.
Swagger/multiple fixes (#248)
Syed Ali Shahbaz4e24b6f7c050
diff --git a/pages/api/custom-inputs/_post.ts b/pages/api/custom-inputs/_post.tsindex 56d15816a47..331fdd732fc 100644--- a/pages/api/custom-inputs/_post.ts+++ b/pages/api/custom-inputs/_post.ts@@ -8,12 +8,6 @@ import {schemaEventTypeCustomInputPublic,} from "~/lib/validations/event-type-custom-input";-// id: z.number().int(),-// eventTypeId: z.number().int(),-// label: z.string(),-// type: z.nativeEnum(EventTypeCustomInputType),-// required: z.boolean(),-// placeholder: z.string(),/*** @swagger* /custom-inputs:diff --git a/pages/api/payments/[id].ts b/pages/api/payments/[id].tsindex 8e3657be6a6..f8a54ff7f4a 100644--- a/pages/api/payments/[id].ts+++ b/pages/api/payments/[id].ts@@ -14,6 +14,12 @@ import {* get:* summary: Find a payment* parameters:+ * - in: query+ * name: apiKey+ * required: true+ * schema:+ * type: string+ * description: Your API key* - in: path* name: id* schema:diff --git a/pages/api/teams/[teamId]/_delete.ts b/pages/api/teams/[teamId]/_delete.tsindex 77e34427055..e81be99974c 100644--- a/pages/api/teams/[teamId]/_delete.ts+++ b/pages/api/teams/[teamId]/_delete.ts@@ -19,6 +19,12 @@ import { checkPermissions } from "./_auth-middleware";* type: integer* required: true* description: ID of the team to delete+ * - in: query+ * name: apiKey+ * required: true+ * schema:+ * type: string+ * description: Your API key* tags:* - teams* responses:diff --git a/pages/api/teams/[teamId]/_get.ts b/pages/api/teams/[teamId]/_get.tsindex 2c228474187..cff0e987c90 100644--- a/pages/api/teams/[teamId]/_get.ts+++ b/pages/api/teams/[teamId]/_get.ts@@ -19,6 +19,12 @@ import { schemaTeamReadPublic } from "~/lib/validations/team";* type: integer* required: true* description: ID of the team to get+ * - in: query+ * name: apiKey+ * required: true+ * schema:+ * type: string+ * description: Your API key* tags:* - teams* responses:diff --git a/pages/api/teams/[teamId]/_patch.ts b/pages/api/teams/[teamId]/_patch.tsindex ddf83e5883d..93d1a3a46a4 100644--- a/pages/api/teams/[teamId]/_patch.ts+++ b/pages/api/teams/[teamId]/_patch.ts@@ -24,6 +24,26 @@ import { schemaTeamReadPublic, schemaTeamUpdateBodyParams } from "~/lib/validati* type: integer* required: true* description: ID of the team to edit+ * - in: query+ * name: apiKey+ * required: true+ * schema:+ * type: string+ * description: Your API key+ * requestBody:+ * description: Create a new custom input for an event type+ * required: true+ * content:+ * application/json:+ * schema:+ * type: object+ * properties:+ * name:+ * type: string+ * description: Name of the team+ * slug:+ * type: string+ * description: A unique slug that works as path for the team public page* tags:* - teams* responses:diff --git a/pages/api/teams/_get.ts b/pages/api/teams/_get.tsindex ca038fdc186..49af07ac8ee 100644--- a/pages/api/teams/_get.ts+++ b/pages/api/teams/_get.ts@@ -11,6 +11,13 @@ import { schemaTeamsReadPublic } from "~/lib/validations/team";* get:* operationId: listTeams* summary: Find all teams+ * parameters:+ * - in: query+ * name: apiKey+ * required: true+ * schema:+ * type: string+ * description: Your API key* tags:* - teams* responses:diff --git a/pages/api/teams/_post.ts b/pages/api/teams/_post.tsindex ef0783e4df2..af032d00d47 100644--- a/pages/api/teams/_post.ts+++ b/pages/api/teams/_post.ts@@ -14,6 +14,30 @@ import { schemaTeamBodyParams, schemaTeamReadPublic } from "~/lib/validations/te* post:* operationId: addTeam* summary: Creates a new team+ * parameters:+ * - in: query+ * name: apiKey+ * required: true+ * schema:+ * type: string+ * description: Your API key+ * requestBody:+ * description: Create a new custom input for an event type+ * required: true+ * content:+ * application/json:+ * schema:+ * type: object+ * required:+ * - name+ * - slug+ * properties:+ * name:+ * type: string+ * description: Name of the team+ * slug:+ * type: string+ * description: A unique slug that works as path for the team public page* tags:* - teams* responses: