swagger docs update for selected calendars (#246)

Adds swagger doc update for selected calendars API endpoint
pull/9078/head
Syed Ali Shahbaz 2023-03-10 22:33:27 +05:30 committed by GitHub
parent ccf93190d7
commit 2da8784865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 12 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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: