Skip to content

Scheduling infrastructure for absolutely everyone.

fix: display message in the response (#25102)

Anik Dhabal Babu94c7bfea4d30
diff --git a/apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/slots.controller.ts b/apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/slots.controller.ts
index d46a7d2124a..2d84f01c577 100644
--- a/apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/slots.controller.ts
+++ b/apps/api/v2/src/modules/slots/slots-2024-09-04/controllers/slots.controller.ts
@@ -188,7 +188,8 @@ export class SlotsController_2024_09_04 {
@DocsResponse({
status: 200,
description: `A map of available slots indexed by date, where each date is associated with an array of time slots. If format=range is specified, each slot will be an object with start and end properties denoting start and end of the slot.
- For seated slots each object will have attendeesCount and bookingUid properties.`,
+ For seated slots each object will have attendeesCount and bookingUid properties.
+ If no slots are available, the data field will be an empty object {}.`,
schema: {
oneOf: [
{
diff --git a/docs/api-reference/v2/openapi.json b/docs/api-reference/v2/openapi.json
index 6e2edd14536..6eec205f657 100644
--- a/docs/api-reference/v2/openapi.json
+++ b/docs/api-reference/v2/openapi.json
@@ -13741,7 +13741,7 @@
],
"responses": {
"200": {
- "description": "A map of available slots indexed by date, where each date is associated with an array of time slots. If format=range is specified, each slot will be an object with start and end properties denoting start and end of the slot.\n For seated slots each object will have attendeesCount and bookingUid properties.",
+ "description": "A map of available slots indexed by date, where each date is associated with an array of time slots. If format=range is specified, each slot will be an object with start and end properties denoting start and end of the slot.\n For seated slots each object will have attendeesCount and bookingUid properties.\n If no slots are available, the data object will be empty {}.",
"content": {
"application/json": {
"schema": {