Sindbad~EG File Manager
/**
* @swagger
* components:
* schemas:
* XDates:
* type: object
* required:
* - x_date
* - line_of_business
* - expiration_premium
* - term
* - related_policy
* - x_date_description
* - contact_id
* properties:
* x_date:
* type: string
* description: The X date of the policy
* line_of_business:
* type: string
* description: The line of business related to the policy
* expiration_premium:
* type: string
* description: The expiration premium amount for the policy
* term:
* type: array
* items:
* type: string
* description: The terms of the policy
* related_policy:
* type: string
* description: The related policy identifier
* x_date_description:
* type: string
* description: A description of the X date
* contact_id:
* type: string
* description: The ID of the associated contact
* example:
* x_date: "string_value"
* line_of_business: "string_value"
* expiration_premium: "string_value"
* term: ["value1", "value2"]
* related_policy: "string_value"
* x_date_description: "string_value"
* contact_id: "6679d98f6bc36cd891ccab49"
* 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: XDates
* description: Operations related to X dates
*/
/**
* @swagger
* /expiries/list:
* get:
* summary: Returns the list of X dates
* tags: [XDates]
* security:
* - bearerAuth: []
* responses:
* 200:
* description: The list of X dates
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/XDates'
* /expiries/add:
* post:
* summary: Create a new X dates entry
* tags: [XDates]
* security:
* - bearerAuth: []
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/XDates'
* responses:
* 201:
* description: The X dates entry was successfully created
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/XDates'
*/
/**
* @swagger
* /expiries/edit/{id}:
* put:
* summary: Update the X dates entry by ID
* tags: [XDates]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The ID of the X dates entry
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/XDates'
* responses:
* 200:
* description: The X dates entry was successfully updated
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/UpdateResponse'
*/
/**
* @swagger
* /expiries/delete/{id}:
* delete:
* summary: Delete the X dates entry by ID
* tags: [XDates]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The ID of the X dates entry
* responses:
* 200:
* description: The X dates entry was successfully deleted
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/DeleteResponse'
*/
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists