Sindbad~EG File Manager
/**
* @swagger
* components:
* schemas:
* Products:
* type: object
* properties:
* applicant_installs_services_or_demonstrates_products:
* type: boolean
* foreign_products_sold_distributed_or_used_as_components:
* type: boolean
* new_products_r_and_d:
* type: boolean
* guarantees_warranties_hold_harmless_agreements:
* type: boolean
* products_for_aircraft_space_industry:
* type: boolean
* products_discontinued_recalled_changed:
* type: boolean
* products_of_others:
* type: boolean
* label_of_others:
* type: boolean
* vendors_coverage_required:
* type: boolean
* named_insured_sells_to_other_named_insureds:
* type: boolean
* policy_id:
* type: string
* format: objectId
* example:
* applicant_installs_services_or_demonstrates_products: true
* foreign_products_sold_distributed_or_used_as_components: false
* new_products_r_and_d: true
* guarantees_warranties_hold_harmless_agreements: true
* products_for_aircraft_space_industry: false
* products_discontinued_recalled_changed: true
* products_of_others: false
* label_of_others: true
* vendors_coverage_required: true
* named_insured_sells_to_other_named_insureds: false
* 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: Products
* description: Operations related to product information
*/
/**
* @swagger
* /products/list:
* get:
* summary: Returns the list of binder information
* tags: [Products]
* 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/Products'
*/
/**
* @swagger
* /products/add:
* post:
* summary: Create a new binder information entry
* tags: [Products]
* security:
* - bearerAuth: []
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Products'
* responses:
* 201:
* description: The binder information entry was successfully created
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Products'
*/
/**
* @swagger
* /products/edit/{id}:
* put:
* summary: Update the product information entry by ID
* tags: [Products]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The ID of the product information entry
* requestBody:
* required: true
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/Products'
* responses:
* 200:
* description: The product information entry was successfully updated
* content:
* application/json:
* schema:
* $ref: '#/components/schemas/UpdateResponse'
*/
/**
* @swagger
* /products/delete/{id}:
* delete:
* summary: Delete the product information entry by ID
* tags: [Products]
* security:
* - bearerAuth: []
* parameters:
* - in: path
* name: id
* schema:
* type: string
* required: true
* description: The ID of the product information entry
* responses:
* 200:
* description: The product 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