Scheduling infrastructure for absolutely everyone.
swagger docs update for selected calendars (#246)
Syed Ali Shahbaz2da878486558
diff --git a/pages/api/selected-calendars/[id]/_delete.ts b/pages/api/selected-calendars/[id]/_delete.tsindex 5cc5e4b0158..e04b67f7112 100644--- a/pages/api/selected-calendars/[id]/_delete.ts+++ b/pages/api/selected-calendars/[id]/_delete.ts@@ -11,6 +11,12 @@ import { selectedCalendarIdSchema } from "~/lib/validations/selected-calendar";* operationId: removeSelectedCalendarById* summary: Remove a selected calendar* parameters:+ * - in: query+ * name: apiKey+ * schema:+ * type: string+ * required: true+ * description: Your API Key* - in: path* name: userId* schema:diff --git a/pages/api/selected-calendars/[id]/_get.ts b/pages/api/selected-calendars/[id]/_get.tsindex d164afae977..a5549f1a214 100644--- a/pages/api/selected-calendars/[id]/_get.ts+++ b/pages/api/selected-calendars/[id]/_get.ts@@ -11,6 +11,12 @@ import { schemaSelectedCalendarPublic, selectedCalendarIdSchema } from "~/lib/va* operationId: getSelectedCalendarById* summary: Find a selected calendar by providing the compoundId(userId_integration_externalId) separated by `_`* parameters:+ * - in: query+ * name: apiKey+ * schema:+ * type: string+ * required: true+ * description: Your API Key* - in: path* name: userId* schema:diff --git a/pages/api/selected-calendars/[id]/_patch.ts b/pages/api/selected-calendars/[id]/_patch.tsindex 81b09a95df2..c2b526303da 100644--- a/pages/api/selected-calendars/[id]/_patch.ts+++ b/pages/api/selected-calendars/[id]/_patch.ts@@ -17,6 +17,12 @@ import {* operationId: editSelectedCalendarById* summary: Edit a selected calendar* parameters:+ * - in: query+ * name: apiKey+ * schema:+ * type: string+ * required: true+ * description: Your API Key* - in: path* name: userId* schema:diff --git a/pages/api/selected-calendars/_get.ts b/pages/api/selected-calendars/_get.tsindex 2d655f860b1..c5e2182adf5 100644--- a/pages/api/selected-calendars/_get.ts+++ b/pages/api/selected-calendars/_get.ts@@ -13,6 +13,13 @@ import { schemaQuerySingleOrMultipleUserIds } from "~/lib/validations/shared/que* get:* operationId: listSelectedCalendars* summary: Find all selected calendars+ * parameters:+ * - in: query+ * name: apiKey+ * schema:+ * type: string+ * required: true+ * description: Your API Key* tags:* - selected-calendars* responses:diff --git a/pages/api/selected-calendars/_post.ts b/pages/api/selected-calendars/_post.tsindex a62e0f98843..23b26a76e98 100644--- a/pages/api/selected-calendars/_post.ts+++ b/pages/api/selected-calendars/_post.ts@@ -12,20 +12,32 @@ import {/*** @swagger* /selected-calendars:- * get:- * operationId: addSelectedCalendars- * summary: Find all selected calendars- * tags:- * - selected-calendars- * responses:- * 200:- * description: OK- * 401:- * description: Authorization information is missing or invalid.- * 404:- * description: No selected calendars were found* post:* summary: Creates a new selected calendar+ * parameters:+ * - in: query+ * name: apiKey+ * schema:+ * type: string+ * required: true+ * description: Your API Key+ * requestBody:+ * description: Create a new selected calendar+ * required: true+ * content:+ * application/json:+ * schema:+ * type: object+ * required:+ * - integration+ * - externalId+ * properties:+ * integration:+ * type: string+ * description: The integration name+ * externalId:+ * type: string+ * description: The external ID of the integration* tags:* - selected-calendars* responses: