feat: Add booking references API endpoints (#21127)
* feat: Add booking references API endpoints * refactor: Implement booking-reference service and repositories * Add description and reorder properties in BookingReference schema * Refactor booking references service to separate output service
This commit is contained in:
1 parent
ac821f6b13
commit
6143cd60e5
13 files changed
+6136
-65
No files matched your search
@@ -3282,6 +3282,64 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v2/organizations/{orgId}/teams/{teamId}/bookings/{bookingUid}/references": {
|
||||
"get": {
|
||||
"operationId": "OrganizationsTeamsBookingsController_getBookingReferences",
|
||||
"summary": "Get 'Booking References' for a booking",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
"in": "header",
|
||||
"description": "For non-platform customers - value must be `Bearer <token>` where `<token>` is api key prefixed with cal_",
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "bookingUid",
|
||||
"required": true,
|
||||
"in": "path",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/BookingReferencesOutput_2024_08_13"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Orgs / Teams / Bookings"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v2/organizations/{orgId}/teams/{teamId}/conferencing/{app}/connect": {
|
||||
"post": {
|
||||
"operationId": "OrganizationsConferencingController_connectTeamApp",
|
||||
@@ -7448,6 +7506,56 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v2/bookings/{bookingUid}/references": {
|
||||
"get": {
|
||||
"operationId": "BookingsController_2024_08_13_getBookingReferences",
|
||||
"summary": "Get 'Booking References' for a booking",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "cal-api-version",
|
||||
"in": "header",
|
||||
"description": "Must be set to 2024-08-13",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"default": "2024-08-13"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "bookingUid",
|
||||
"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": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/BookingReferencesOutput_2024_08_13"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Bookings"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/v2/calendars/ics-feed/save": {
|
||||
"post": {
|
||||
"operationId": "CalendarsController_createIcsFeed",
|
||||
@@ -11506,7 +11614,7 @@
|
||||
},
|
||||
"patch": {
|
||||
"operationId": "TeamsMembershipsController_updateTeamMembership",
|
||||
"summary": "Create a membership",
|
||||
"summary": "Update membership",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "Authorization",
|
||||
@@ -24144,6 +24252,49 @@
|
||||
"data"
|
||||
]
|
||||
},
|
||||
"BookingReference": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"description": "The type of the booking reference"
|
||||
},
|
||||
"externalUid": {
|
||||
"type": "string",
|
||||
"description": "The external uid of the booking reference"
|
||||
},
|
||||
"id": {
|
||||
"type": "number",
|
||||
"description": "The id of the booking reference"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type",
|
||||
"externalUid",
|
||||
"id"
|
||||
]
|
||||
},
|
||||
"BookingReferencesOutput_2024_08_13": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"status": {
|
||||
"type": "object",
|
||||
"description": "The status of the request, always 'success' for successful responses",
|
||||
"example": "success"
|
||||
},
|
||||
"data": {
|
||||
"description": "Booking References",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/BookingReference"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"status",
|
||||
"data"
|
||||
]
|
||||
},
|
||||
"CreateTeamMembershipInput": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in new issue
Block a user