Sindbad~EG File Manager

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

/**
 * @swagger
 * components:
 *   schemas:
 *     LinkedAccount:
 *       type: object
 *       required:
 *         - linked_account
 *         - relation_ship
 *         - contact_id
 *       properties:
 *         linked_account:
 *           type: string
 *           description: The linked account name or identifier
 *         relation_ship:
 *           type: string
 *           description: The relationship to the primary individual
 *         contact_id:
 *           type: string
 *           description: The ID of the associated contact
 *       example:
 *         linked_account: "Test"
 *         relation_ship: "Brother"
 *         contact_id: "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: LinkedAccount
 *     description: Operations related to linked accounts
 */

/**
 * @swagger
 * /linked-account/list:
 *   get:
 *     summary: Returns the list of linked accounts
 *     tags: [LinkedAccount]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: query
 *         name: contact_id
 *         schema:
 *           type: string
 *         required: true
 *         description: ID of the contact
 *     responses:
 *       200:
 *         description: The list of linked accounts
 *         content:
 *           application/json:
 *             schema:
 *               type: array
 *               items:
 *                 $ref: '#/components/schemas/LinkedAccount'
 */

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

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

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

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