/
home
/
infinitibizsol
/
testingcrm.infinitibizsol.com
/
docs
/
File Upload :
llllll
Current File: /home/infinitibizsol/testingcrm.infinitibizsol.com/docs/messageTemplate.js
/** * @swagger * components: * schemas: * MessageTemplate: * type: object * properties: * template_type: * type: string * enum: ['confirmation', 'reminder', 'follow_up'] * description: The type of the message template * title: * type: string * description: The title of the message template * message: * type: string * description: The content of the message template * trigger: * type: string * enum: ['Week Before', 'Day Before', 'Immediately'] * description: The trigger condition for sending the message * example: * template_type: "reminder" * title: "Appointment Reminder" * message: "This is a reminder for your upcoming appointment." * trigger: "Day Before" */ /** * @swagger * tags: * - name: MessageTemplate * description: Operations related to message templates */ /** * @swagger * /api/v1/message-template/list: * get: * summary: Returns the list of all message templates * tags: [MessageTemplate] * security: * - bearerAuth: [] * responses: * 200: * description: The list of message templates * content: * application/json: * schema: * type: array * items: * $ref: '#/components/schemas/MessageTemplate' */ /** * @swagger * /api/v1/message-template/create: * post: * summary: Create a new message template * tags: [MessageTemplate] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/MessageTemplate' * responses: * 201: * description: The message template was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/MessageTemplate' */ /** * @swagger * /api/v1/message-template/single/{id}: * get: * summary: Get a message template by ID * tags: [MessageTemplate] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The message template ID * responses: * 200: * description: The message template was retrieved successfully * content: * application/json: * schema: * $ref: '#/components/schemas/MessageTemplate' */ /** * @swagger * /api/v1/message-template/edit/{id}: * put: * summary: Update a message template by ID * tags: [MessageTemplate] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The message template ID * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/MessageTemplate' * responses: * 200: * description: The message template was updated * content: * application/json: * schema: * $ref: '#/components/schemas/MessageTemplate' */ /** * @swagger * /api/v1/message-template/delete/{id}: * delete: * summary: Remove a message template by ID * tags: [MessageTemplate] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The message template ID * responses: * 200: * description: The message template was deleted * content: * application/json: * schema: * $ref: '#/components/schemas/MessageTemplate' */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure