/
home
/
infinitibizsol
/
testingcrm.infinitibizsol.com
/
docs
/
File Upload :
llllll
Current File: /home/infinitibizsol/testingcrm.infinitibizsol.com/docs/appointment.js
/** * @swagger * components: * schemas: * Appointment: * type: object * properties: * appointment_type: * type: string * description: The ID of the appointment type (references AppointmentType) * full_name: * type: string * description: The full name of the person for the appointment * email: * type: string * description: The full name of the client * contact_no: * type: string * description: The contact number of the person for the appointment * date: * type: string * format: date * description: The date of the appointment * start_time: * type: string * description: The start time of the appointment * end_time: * type: string * description: The end time of the appointment * notes: * type: string * description: Additional notes for the appointment * send_confirmation_message: * type: boolean * description: Indicates if a confirmation message should be sent * set_reminder: * type: boolean * description: Indicates if a reminder should be set for the appointment * example: * appointment_type: "64f9c1d2f05b4c001b8a3e45" * full_name: "John Doe" * email: "doe@gmail.com" * contact_no: "+1234567890" * date: "2025-01-30" * start_time: "09:00 AM" * end_time: "10:00 AM" * notes: "Bring necessary documents." * send_confirmation_message: true * set_reminder: false */ /** * @swagger * tags: * - name: Appointment * description: Operations related to appointments */ /** * @swagger * /api/v1/appointment/list: * get: * summary: Returns the list of all appointments * tags: [Appointment] * security: * - bearerAuth: [] * responses: * 200: * description: The list of appointments * content: * application/json: * schema: * type: array * items: * $ref: '#/components/schemas/Appointment' */ /** * @swagger * /api/v1/appointment/create: * post: * summary: Create a new appointment * tags: [Appointment] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/Appointment' * responses: * 201: * description: The appointment was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/Appointment' */ /** * @swagger * /api/v1/appointment/single/{id}: * get: * summary: Get an appointment by ID * tags: [Appointment] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The appointment ID * responses: * 200: * description: The appointment was retrieved successfully * content: * application/json: * schema: * $ref: '#/components/schemas/Appointment' */ /** * @swagger * /api/v1/appointment/edit/{id}: * put: * summary: Update an appointment by ID * tags: [Appointment] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The appointment ID * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/Appointment' * responses: * 200: * description: The appointment was updated * content: * application/json: * schema: * $ref: '#/components/schemas/Appointment' */ /** * @swagger * /api/v1/appointment/delete/{id}: * delete: * summary: Remove an appointment by ID * tags: [Appointment] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The appointment ID * responses: * 200: * description: The appointment was deleted * content: * application/json: * schema: * $ref: '#/components/schemas/Appointment' */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure