/
home
/
infinitibizsol
/
.trash
/
docs.2
/
policy
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/docs.2/policy/natureOfBusiness.js
/** * @swagger * components: * schemas: * NatureOfBusiness: * type: object * properties: * nature_of_business: * type: string * other: * type: string * date_business_started: * type: string * format: date * description_of_primary_operation: * type: string * retails_store: * type: object * properties: * installation: * type: string * off_premises: * type: string * description_of_operation_other_named_insured: * type: string * policy_id: * type: string * format: objectId * example: * nature_of_business: "Retail" * other: "E-commerce platform" * date_business_started: "2022-01-15" * description_of_primary_operation: "Selling electronics and home appliances" * retails_store: * installation: "On-site installation available" * off_premises: "Delivery and setup at customer location" * description_of_operation_other_named_insured: "Warehouse storage for other businesses" * 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: NatureOfBusiness * description: Operations related to the nature of business information */ /** * @swagger * /nature-of-business/list: * get: * summary: Returns the list of binder information * tags: [NatureOfBusiness] * 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/NatureOfBusiness' */ /** * @swagger * /nature-of-business/add: * post: * summary: Create a new binder information entry * tags: [NatureOfBusiness] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/NatureOfBusiness' * responses: * 201: * description: The binder information entry was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/NatureOfBusiness' */ /** * @swagger * /nature-of-business/edit/{id}: * put: * summary: Update the nature of business entry by ID * tags: [NatureOfBusiness] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the nature of business entry * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/NatureOfBusiness' * responses: * 200: * description: The nature of business entry was successfully updated * content: * application/json: * schema: * $ref: '#/components/schemas/UpdateResponse' */ /** * @swagger * /nature-of-business/delete/{id}: * delete: * summary: Delete the nature of business entry by ID * tags: [NatureOfBusiness] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the nature of business entry * responses: * 200: * description: The nature of business entry was successfully deleted * content: * application/json: * schema: * $ref: '#/components/schemas/DeleteResponse' */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure