/
home
/
infinitibizsol
/
.trash
/
docs.5
/
policy
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/docs.5/policy/fee.js
/** * @swagger * components: * schemas: * PolicyFee: * type: object * properties: * fee_name: * type: string * description: Name of the fee * amount: * type: string * description: Amount of the fee * policy_id: * type: string * format: objectId * description: ID of the policy the fee is associated with * example: * fee_name: "Service Fee" * amount: "100" * policy_id: "605c72ef8f1b2e478c5e841e" */ /** * @swagger * /policy-fee/list: * get: * summary: Returns the list of policy fees * tags: [PolicyFee] * security: * - bearerAuth: [] * parameters: * - in: query * name: policy_id * schema: * type: string * required: true * description: ID of the policy * responses: * 200: * description: The list of policy fees * content: * application/json: * schema: * type: array * items: * $ref: '#/components/schemas/PolicyFee' */ /** * @swagger * /policy-fee/add: * post: * summary: Create a new policy fee entry * tags: [PolicyFee] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/PolicyFee' * responses: * 201: * description: The policy fee entry was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/PolicyFee' */ /** * @swagger * /policy-fee/edit/{id}: * put: * summary: Update the policy fee entry by ID * tags: [PolicyFee] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the policy fee entry * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/PolicyFee' * responses: * 200: * description: The policy fee entry was successfully updated * content: * application/json: * schema: * $ref: '#/components/schemas/PolicyFee' */ /** * @swagger * /policy-fee/delete/{id}: * delete: * summary: Delete the policy fee entry by ID * tags: [PolicyFee] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the policy fee entry * responses: * 200: * description: The policy fee entry was successfully deleted * content: * application/json: * schema: * $ref: '#/components/schemas/DeleteResponse' */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure