Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/docs.9/user/
Upload File :
Current File : /home/infinitibizsol/.trash/docs.9/user/employeeInfo.js

/**
 * @swagger
 * components:
 *   schemas:
 *     EmployeeInfo:
 *       type: object
 *       required:
 *         - user_id
 *       properties:
 *         first_name:
 *           type: string
 *           description: The first name of the individual
 *         last_name:
 *           type: string
 *           description: The last name of the individual
 *         middle_name:
 *           type: string
 *           description: The middle name of the individual
 *         title:
 *           type: string
 *           description: The title of the individual (e.g., Mr., Mrs., Dr.)
 *         department:
 *           type: string
 *           description: The department the individual works in
 *         date_of_birth:
 *           type: string
 *           format: date
 *           description: The date of birth of the individual
 *         social_security:
 *           type: string
 *           description: The social security number of the individual
 *         about_me:
 *           type: string
 *           description: A short biography or description about the individual
 *         created_by:
 *           type: string
 *           description: The ID of the user who created this entry
 *       example:
 *         first_name: "John"
 *         last_name: "Doe"
 *         middle_name: "M"
 *         title: "Mr."
 *         department: "Engineering"
 *         date_of_birth: "1980-01-01"
 *         social_security: "123-45-6789"
 *         about_me: "A seasoned engineer with over 20 years of experience."
 *         created_by: "667dcaf3f52d0d7678ea7dea"
 *     UpdateResponse:
 *       type: object
 *       properties:
 *         message:
 *           type: string
 *           example: "Data updated successfully"
 *     DeleteResponse:
 *       type: object
 *       properties:
 *         message:
 *           type: string
 *           example: "Entry and related data deleted successfully"
 *   securitySchemes:
 *     bearerAuth:
 *       type: http
 *       scheme: bearer
 *       bearerFormat: JWT
 */

/**
 * @swagger
 * tags:
 *   - name: EmployeeInfo
 *     description: Employment information-related operations
 */

/**
 * @swagger
 * /employee-info/list:
 *   get:
 *     summary: Returns the list of employment information entries
 *     tags: [EmployeeInfo]
 *     security:
 *       - bearerAuth: []
 *     responses:
 *       200:
 *         description: The list of employment information entries
 *         content:
 *           application/json:
 *             schema:
 *               type: array
 *               items:
 *                 $ref: '#/components/schemas/EmployeeInfo'
 */

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

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

/**
 * @swagger
 * /employee-info/delete/{id}:
 *   delete:
 *     summary: Delete the employment information entry by ID
 *     tags: [EmployeeInfo]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: path
 *         name: id
 *         schema:
 *           type: string
 *         required: true
 *         description: The ID of the employment information entry
 *     responses:
 *       200:
 *         description: The employment information 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