fix: API v2 @GetWebhook() decorator doesn't generate OpenAPI path (#27612)

* fix: openapi spec for GetWebhook decorator

* fix: openapi spec
This commit is contained in:
Rajiv Sahal authored and GitHub committed 2026-02-10 11:56:55 -03:00
1 parent d8e6ecc7a0
commit db76980644
6 files changed
+142 -5

No files matched your search

+123
View File
@@ -9326,6 +9326,73 @@
"tags": ["Bookings"]
}
},
"/v2/bookings/by-seat/{seatUid}": {
"get": {
"operationId": "BookingsController_2024_08_13_getBookingBySeatUid",
"summary": "Get a booking by seat UID",
"description": "Get a seated booking by its seat reference UID. This is useful when you have a seatUid from a seated booking and want to retrieve the full booking details.\n\n If you are fetching a seated booking for an event type with 'show attendees' disabled, then to retrieve attendees in the response either set 'show attendees' to true on event type level or\n you have to provide an authentication method of event type owner, host, team admin or owner or org admin or owner.\n\n <Note>Please make sure to pass in the cal-api-version header value as mentioned in the Headers section. Not passing the correct value will default to an older version of this endpoint.</Note>\n ",
"parameters": [
{
"name": "cal-api-version",
"in": "header",
"description": "Must be set to 2024-08-13. If not set to this value, the endpoint will default to an older version.",
"required": true,
"schema": {
"type": "string",
"default": "2024-08-13"
}
},
{
"name": "seatUid",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
},
{
"name": "Authorization",
"in": "header",
"description": "value must be `Bearer <token>` where `<token>` is api key prefixed with cal_ or managed user access token",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "x-cal-secret-key",
"in": "header",
"description": "For platform customers - OAuth client secret key",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "x-cal-client-id",
"in": "header",
"description": "For platform customers - OAuth client ID",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetBookingOutput_2024_08_13"
}
}
}
}
},
"tags": ["Bookings"]
}
},
"/v2/bookings/{bookingUid}": {
"get": {
"operationId": "BookingsController_2024_08_13_getBooking",
@@ -11593,6 +11660,14 @@
"schema": {
"type": "string"
}
},
{
"name": "webhookId",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
@@ -11622,6 +11697,14 @@
"schema": {
"type": "string"
}
},
{
"name": "webhookId",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
@@ -12392,6 +12475,14 @@
"schema": {
"type": "string"
}
},
{
"name": "webhookId",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
@@ -12420,6 +12511,14 @@
"schema": {
"type": "string"
}
},
{
"name": "webhookId",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
@@ -15351,6 +15450,14 @@
"schema": {
"type": "string"
}
},
{
"name": "webhookId",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
@@ -15379,6 +15486,14 @@
"schema": {
"type": "string"
}
},
{
"name": "webhookId",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {
@@ -16665,6 +16780,14 @@
"schema": {
"type": "string"
}
},
{
"name": "webhookId",
"required": true,
"in": "path",
"schema": {
"type": "string"
}
}
],
"responses": {