Sindbad~EG File Manager
/**
* @swagger
* components:
* schemas:
* PersonalInfo:
* type: object
* required:
* - first_name
* - last_name
* - date_of_birth
* - gender
* - preferred_language
* - business_owner
* - industry
* - contact_id
* properties:
* first_name:
* type: string
* description: The first name of the individual
* middle_name:
* type: string
* description: The middle name of the individual
* last_name:
* type: string
* description: The last name of the individual
* date_of_birth:
* type: string
* format: date
* description: The birthDate of the individual
* gender:
* type: string
* description: The gender of the individual
* preferred_language:
* type: string
* description: The preferred language of the individual
* business_owner:
* type: boolean
* description: The business owned by the individual, if any
* industry:
* type: string
* description: The industry in which the individual works
* contact_id:
* type: string
* description: The ID of the CONTACT who created this entry
* example:
* first_name: "Admin Test"
* middle_name: "Admin"
* last_name: "Admin"
* date_of_birth: "2021-09-01"
* gender: "male"
* preferred_language: "ENG"
* business_owner: false
* industry: "IT"
* contact_id: "6690538a8ec7ea9c6060e1f6"
* 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: PersonalInfo
* description: Personal information-related operations
*/
/**
* @swagger
* /personal-info/list:
* get:
* summary: Returns the list of personal information entries
* tags: [PersonalInfo]
* security:
* - bearerAuth: []
* parameters:
* - in: query
* name: contact_id
* schema:
* type: string
* required: false
* description: ID of the contact
* responses:
* 200:
* description: The list of personal information entries
* content:
* application/json:
* schema:
* type: array
* items:
* $ref: '#/components/schemas/PersonalInfo'
*/
/**
* @swagger
* /personal-info/add:
* post:
* summary: Create a new personal information entry
* tags: [PersonalInfo]
* security:
* - bearerAuth: []
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/PersonalInfo'
* responses:
* 201:
* description: The personal information was successfully created
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/PersonalInfo'
*/
/**
* @swagger
* /personal-info/edit/{id}:
* put:
* summary: Update the personal information entry by ID
* tags: [PersonalInfo]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The ID of the personal information entry
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/PersonalInfo'
* responses:
* 200:
* description: The personal information entry was successfully updated
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/UpdateResponse'
*/
/**
* @swagger
* /personal-info/delete/{id}:
* delete:
* summary: Delete the personal information entry by ID
* tags: [PersonalInfo]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The ID of the personal information entry
* responses:
* 200:
* description: The personal information entry was successfully deleted
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/DeleteResponse'
*/
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists