Sindbad~EG File Manager
/**
* @swagger
* components:
* schemas:
* Policy:
* type: object
* required:
* - policy_type
* - line_of_business
* - effective_date
* - policy_number
* - term
* - status
* - estimated_premium
* properties:
* policy_type:
* type: string
* description: The type of the policy
* line_of_business:
* type: string
* description: The line of business for the policy
* effective_date:
* type: string
* format: date
* description: The effective date of the policy
* policy_number:
* type: string
* description: The unique identifier for the policy
* term:
* type: string
* description: The term or duration of the policy
* status:
* type: string
* description: The current status of the policy
* estimated_premium:
* type: string
* description: The estimated premium for the policy
* contact_id:
* type: string
* description: The ID of the contact associated with the policy
* user_id:
* type: string
* description: The ID of the contact associated with the policy
* example:
* policy_type: "Life Insurance"
* line_of_business: "Insurance"
* effective_date: "2024-01-01"
* policy_number: "POL123456789"
* term: "12 months"
* status: "Active"
* estimated_premium: "500.00"
* contact_id: "666a1adb4a817baa96f0387a"
* user_id: "666a1adb4a817baa96f0387a"
* 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: Policy
* description: Policy related operations
*/
/**
* @swagger
* /policy/single-policy/{id}:
* get:
* summary: Returns the policies
* tags: [Policy]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The policy ID
* responses:
* 200:
* description: The list of policies
* content:
* application/json:
* schema:
* type: array
* items:
* $ref: '#/components/schemas/Policy'
*/
/**
* @swagger
* /policy/list:
* get:
* summary: Returns the list of policies
* tags: [Policy]
* security:
* - bearerAuth: []
* parameters:
* - in: query
* name: contact_id
* schema:
* type: string
* required: false
* description: ID of the contact associated with the policies
* - in: query
* name: user_id
* schema:
* type: string
* required: false
* description: ID of the agent associated with the policies
* responses:
* 200:
* description: The list of policies
* content:
* application/json:
* schema:
* type: array
* items:
* $ref: '#/components/schemas/Policy'
*/
/**
* @swagger
* /policy/add:
* post:
* summary: Create a new policy
* tags: [Policy]
* security:
* - bearerAuth: []
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Policy'
* responses:
* 201:
* description: The policy was successfully created
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Policy'
*/
/**
* @swagger
* /policy/edit/{id}:
* put:
* summary: Update the policy by ID
* tags: [Policy]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The policy ID
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Policy'
* responses:
* 200:
* description: The policy was successfully updated
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/UpdateResponse'
*/
/**
* @swagger
* /policy/delete/{id}:
* delete:
* summary: Delete the policy by ID
* tags: [Policy]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The policy ID
* responses:
* 200:
* description: The policy 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