Sindbad~EG File Manager
/**
* @swagger
* components:
* schemas:
* ProfileRequest:
* type: object
* properties:
* contact_id:
* type: string
* description: The unique identifier for the contact
* example: "12345"
* required:
* - contact_id
* Contact:
* type: object
* required:
* - first_name
* - last_name
* - email
* - password
* - contact_type
* - current_status
* - customer_type
* - location
* - created_by
* properties:
* first_name:
* type: string
* description: The first name of the contact
* last_name:
* type: string
* description: The last name of the contact
* email:
* type: string
* description: The primary email address of the contact
* profile_picture:
* type: string
* description: The profile picture address of the contact
* password:
* type: string
* description: The password for the contact's account
* contact_type:
* type: string
* description: The type of contact (e.g., agent, client)
* current_status:
* type: string
* description: The current status of the contact (e.g., active, inactive)
* customer_type:
* type: string
* description: The type of customer (e.g., Prospective, Current)
* location:
* type: string
* description: The location of the contact
* example:
* first_name: "Awais"
* last_name: "Butt"
* email: "awais@butt.com"
* profile_picture: "image-38838.png"
* password: "12345"
* contact_type: "agent"
* current_status: "active"
* customer_type: "Prospective"
* location: "USA"
* 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: Contact
* description: Operations related to Contact
*/
/**
* @swagger
* /contact/list:
* get:
* summary: Returns the list of Contacts
* tags: [Contact]
* security:
* - bearerAuth: []
* responses:
* 200:
* description: The list of Contacts
* content:
* application/json:
* schema:
* type: array
* items:
* $ref: '#/components/schemas/Contact'
*/
/**
* @swagger
* /contact/all-contacts:
* get:
* summary: Returns the list of Contacts
* tags: [Contact]
* security:
* - bearerAuth: []
* responses:
* 200:
* description: The list of Contacts
* content:
* application/json:
* schema:
* type: array
* items:
* $ref: '#/components/schemas/Contact'
*/
/**
* @swagger
* /contact/add:
* post:
* summary: Create a new Contact entry
* tags: [Contact]
* security:
* - bearerAuth: []
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Contact'
* responses:
* 201:
* description: The Contact entry was successfully created
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Contact'
*/
/**
* @swagger
* /contact/profile:
* post:
* summary: Create a new Contact entry
* tags: [Contact]
* security:
* - bearerAuth: []
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/ProfileRequest'
* responses:
* 201:
* description: The Contact entry was successfully created
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Contact'
*/
/**
* @swagger
* /contact/edit/{id}:
* put:
* summary: Update the Contact entry by ID
* tags: [Contact]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The ID of the Contact entry
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Contact'
* responses:
* 200:
* description: The Contact entry was successfully updated
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/UpdateResponse'
*/
/**
* @swagger
* /contact/delete/{id}:
* delete:
* summary: Delete the Contact entry by ID
* tags: [Contact]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The ID of the Contact entry
* responses:
* 200:
* description: The Contact 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