Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/docs.6/policy/
Upload File :
Current File : /home/infinitibizsol/.trash/docs.6/policy/underwritingQuestion.js

/**
 * @swagger
 * components:
 *   schemas:
 *     UnderwritingQuestion:
 *       type: object
 *       properties:
 *         question:
 *           type: string
 *           required: true
 *         answered:
 *           type: boolean
 *           required: false
 *         occurrence_date:
 *           type: string
 *           required: false
 *         explanation:
 *           type: string
 *           required: false
 *         resolution_description:
 *           type: string
 *           required: false
 *         number_of:
 *           type: array
 *           items:
 *             type: object
 *             properties:
 *               value:
 *                 type: string
 *               type:
 *                 type: string
 *               ext:
 *                 type: string
 *         answer_amount:
 *           type: array
 *           items:
 *             type: object
 *             properties:
 *               value:
 *                 type: string
 *               type:
 *                 type: string
 *               ext:
 *                 type: string
 *         answer_choice_id:
 *           type: array
 *           items:
 *             type: object
 *             properties:
 *               value:
 *                 type: string
 *               type:
 *                 type: string
 *               ext:
 *                 type: string
 *         answer:
 *           type: string
 *           required: false
 *         policy_id:
 *           type: string
 *           format: objectId
 *           required: true
 *       example:
 *         question: "Has there been any incidents in the last year?"
 *         answered: true
 *         occurrence_date: "2023-05-12"
 *         explanation: "Minor incident with no injuries."
 *         resolution_description: "Safety measures were increased."
 *         number_of:
 *           - value: "2"
 *             type: "Incidents"
 *             ext: "In the last year"
 *         answer_amount:
 *           - value: "5000"
 *             type: "USD"
 *             ext: "Estimated damages"
 *         answer_choice_id:
 *           - value: "1"
 *             type: "Yes/No"
 *             ext: "Chosen answer"
 *         answer: "Yes"
 *         policy_id: "605c72ef8f1b2e478c5e841e"
 */
/**
 * @swagger
 * /underwriting-question/list:
 *   get:
 *     summary: Returns the list of underwriting questions
 *     tags: [UnderwritingQuestion]
 *     security:
 *       - bearerAuth: []
 *     parameters:
 *       - in: query
 *         name: policy_id
 *         schema:
 *           type: string
 *         required: true
 *         description: ID of the policy
 *     responses:
 *       200:
 *         description: The list of underwriting questions
 *         content:
 *           application/json:
 *             schema:
 *               type: array
 *               items:
 *                 $ref: '#/components/schemas/UnderwritingQuestion'
 */

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

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

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