Sindbad~EG File Manager
/**
* @swagger
* components:
* schemas:
* LinkedAccount:
* type: object
* properties:
* contact_id:
* type: string
* description: The unique identifier for the LinkedAccount
* linked_accounts:
* type: array
* items:
* type: object
* properties:
* _id:
* type: string
* description: The unique identifier for the linked account entry
* relation_ref:
* type: string
* description: The ID of the contact this account is linked to
* relation_ship:
* type: string
* description: The relationship of the linked account to the contact
* example:
* contact_id: "6679d98f6bc36cd891ccab49"
* linked_accounts:
* - _id: "7890d98f6bc36cd891ccab50"
* relation_ref: "6679d98f6bc36cd891ccab49"
* relation_ship: "Brother"
* UpdateResponse:
* type: object
* properties:
* message:
* type: string
* example: "Data updated successfully"
* DeleteResponse:
* type: object
* properties:
* message:
* type: string
* example: "Linked account entry 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 providing contact_id in Params.
* tags: [LinkedAccount]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The contact_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
*/
/**
* @swagger
* /linked-account/save:
* 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'
*/
"use strict";
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists