Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/docs.5/policy/
Upload File :
Current File : /home/infinitibizsol/.trash/docs.5/policy/policyForm.js

/**
 * @swagger
 * components:
 *   schemas:
 *     PolicyForm:
 *       type: object
 *       properties:
 *         form_name:
 *           type: string
 *         form_no:
 *           type: string
 *         from_edition:
 *           type: string
 *         form_iteration:
 *           type: string
 *         form_state:
 *           type: string
 *         form_info:
 *           type: string
 *         copyright_owner:
 *           type: string
 *         copyright_owner_code:
 *           type: string
 *         form_references:
 *           type: string
 *         remove_form:
 *           type: string
 *         policy_id:
 *           type: string
 *           format: objectId
 *       example:
 *         form_name: "Insurance Form"
 *         form_no: "IF-2023"
 *         from_edition: "Edition 1"
 *         form_iteration: "Iteration A"
 *         form_state: "Active"
 *         form_info: "This form is required for insurance claims."
 *         copyright_owner: "XYZ Corporation"
 *         copyright_owner_code: "XYZ123"
 *         form_references: "Policy Document, Contract Agreement"
 *         remove_form: "No"
 *         policy_id: "605c72ef8f1b2e478c5e841e"
 *
 *     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: PolicyForm
 *     description: Operations related to policy forms information
 */

/**
 * @swagger
 * /policy-form/list:
 *   get:
 *     summary: Returns the list of binder information
 *     tags: [PolicyForm]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: query
 *         name: policy_id
 *         schema:
 *           type: string
 *         required: true
 *         description: ID of the policy
 *     responses:
 *       200:
 *         description: The list of binder information
 *         content:
 *           application/json:
 *             schema:
 *               type: array
 *               items:
 *                 $ref: '#/components/schemas/PolicyForm'
 */

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

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

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