Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/docs/
Upload File :
Current File : /home/infinitibizsol/.trash/docs/socialMedia.js

/**
 * @swagger
 * components:
 *   schemas:
 *     SocialMedia:
 *       type: object
 *       required:
 *         - user_id
 *       properties:
 *         facebook:
 *           type: string
 *           description: The Facebook profile URL of the user
 *         twitter:
 *           type: string
 *           description: The Twitter profile URL of the user
 *         linkedin:
 *           type: string
 *           description: The LinkedIn profile URL of the user
 *         user_id:
 *           type: string
 *           description: The ID of the user who created this entry
 *       example:
 *         facebook: "https://www.instagram.com"
 *         twitter: "https://www.X.com"
 *         linkedin: "https://www.test1.com"
 *         user_id: "667dcaf3f52d0d7678ea7dea"
 *     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: SocialMedia
 *     description: Social media profile-related operations
 */

/**
 * @swagger
 * /social-media/list:
 *   get:
 *     summary: Returns the list of social media profiles
 *     tags: [SocialMedia]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: query
 *         name: contact_id
 *         schema:
 *           type: string
 *         required: false
 *         description: ID of the contact
 *       - in: query
 *         name: user_id
 *         schema:
 *           type: string
 *         required: false
 *         description: ID of the user/agent ID

 *     responses:
 *       200:
 *         description: The list of social media profiles
 *         content:
 *           application/json:
 *             schema:
 *               $ref: '#/components/schemas/SocialMedia'
 */

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

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

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

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