Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/docs.1/user/
Upload File :
Current File : /home/infinitibizsol/.trash/docs.1/user/textMessages.js

/**
 * @swagger
 * components:
 *   schemas:
 *     TextMessage:
 *       type: object
 *       required:
 *         - sender
 *         - receiver
 *         - value
 *       properties:
 *         contact:
 *           type: string
 *           description: The contact number associated with the message
 *         phone_no:
 *           type: string
 *           description: The phone number associated with the message
 *         value:
 *           type: string
 *           description: The content of the message
 *         sender:
 *           type: string
 *           description: The ID of the user who sent the message
 *         receiver:
 *           type: string
 *           description: The ID of the user who received the message
 *       example:
 *         contact: "+9786777786"
 *         phone_no: "+9786777786"
 *         value: "How are you...?"
 *         sender: "666a1adb4a817baa96f0387b"
 *         receiver: "6679d98f6bc36cd891ccab49"
 *     UpdateResponse:
 *       type: object
 *       properties:
 *         message:
 *           type: string
 *           example: "Data updated successfully"
 *     DeleteResponse:
 *       type: object
 *       properties:
 *         message:
 *           type: string
 *           example: "entry_name and related data deleted successfully"
 *   securitySchemes:
 *     bearerAuth:
 *       type: http
 *       scheme: bearer
 *       bearerFormat: JWT
 */

/**
 * @swagger
 * tags:
 *   - name: TextMessages
 *     description: Operations related to text messages
 */

/**
 * @swagger
 * /text-message/list:
 *   get:
 *     summary: Returns the list of text messages
 *     tags: [TextMessages]
 *     security:
 *       - bearerAuth: []
 *     responses:
 *       200:
 *         description: The list of text messages
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/TextMessage'
 */

/**
 * @swagger
 * /text-message/add:
 *   post:
 *     summary: Create a new text message entry
 *     tags: [TextMessages]
 *     security:
 *       - bearerAuth: []
 *     requestBody:
 *       required: true
 *       content:
 *         application/json:
 *           schema:
 *             $ref: '#/components/schemas/TextMessage'
 *     responses:
 *       201:
 *         description: The text message entry was successfully created
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/TextMessage'
 */

/**
 * @swagger
 * /text-message/edit/{id}:
 *   put:
 *     summary: Update the text message entry by ID
 *     tags: [TextMessages]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: path
 *         name: id
 *         schema:
 *           type: string
 *         required: true
 *         description: The ID of the text message entry
 *     requestBody:
 *       required: true
 *       content:
 *         application/json:
 *           schema:
 *             $ref: '#/components/schemas/TextMessage'
 *     responses:
 *       200:
 *         description: The text message entry was successfully updated
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/UpdateResponse'
 */

/**
 * @swagger
 * /text-message/delete/{id}:
 *   delete:
 *     summary: Delete the text message entry by ID
 *     tags: [TextMessages]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: path
 *         name: id
 *         schema:
 *           type: string
 *         required: true
 *         description: The ID of the text message entry
 *     responses:
 *       200:
 *         description: The text message entry was successfully deleted
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/DeleteResponse'
 */
"use strict";

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists