chore: Add summaries for all API v2 endpoints (#16776)
* chore: Add summaries for all API v2 endpoints * Updated to Get all calendars * Fix build issues * Removed unneeded Swagger UI options * Fix issues with OpenAPI spec
This commit is contained in:
1 parent
2e2a6c73b1
commit
f94494b91e
28 files changed
+490
-202
No files matched your search
@@ -15,7 +15,7 @@ import { WebhookOutputPipe } from "@/modules/webhooks/pipes/WebhookOutputPipe";
|
||||
import { UserWebhooksService } from "@/modules/webhooks/services/user-webhooks.service";
|
||||
import { WebhooksService } from "@/modules/webhooks/services/webhooks.service";
|
||||
import { Controller, Post, Body, UseGuards, Get, Param, Query, Delete, Patch } from "@nestjs/common";
|
||||
import { ApiOperation, ApiTags } from "@nestjs/swagger";
|
||||
import { ApiOperation, ApiTags as DocsTags } from "@nestjs/swagger";
|
||||
import { Webhook } from "@prisma/client";
|
||||
import { plainToClass } from "class-transformer";
|
||||
|
||||
@@ -27,7 +27,7 @@ import { SkipTakePagination } from "@calcom/platform-types";
|
||||
version: API_VERSIONS_VALUES,
|
||||
})
|
||||
@UseGuards(ApiAuthGuard)
|
||||
@ApiTags("Users' Webhooks")
|
||||
@DocsTags("Webhooks")
|
||||
export class WebhooksController {
|
||||
constructor(
|
||||
private readonly webhooksService: WebhooksService,
|
||||
@@ -82,7 +82,7 @@ export class WebhooksController {
|
||||
}
|
||||
|
||||
@Get("/")
|
||||
@ApiOperation({ summary: "Get all user webhooks paginated" })
|
||||
@ApiOperation({ summary: "Get all webooks (paginated)" })
|
||||
async getWebhooks(
|
||||
@GetUser() user: UserWithProfile,
|
||||
@Query() query: SkipTakePagination
|
||||
|
||||
Reference in new issue
Block a user