/
home
/
infinitibizsol
/
.trash
/
docs.2
/
contact
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/docs.2/contact/expireDates.js
/** * @swagger * components: * schemas: * ExpireDates: * 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: 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: "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: ExpireDates * description: Operations related to X dates */ /** * @swagger * /expiries/list: * get: * summary: Returns the list of X dates, * tags: [ExpireDates] * security: * - bearerAuth: [] * parameters: * - in: query * name: contact_id * schema: * type: string * required: false * description: ID of the contact * responses: * 200: * description: The list of X dates * content: * application/json: * schema: * $ref: '#/components/schemas/ExpireDates' * /expiries/add: * post: * summary: Create a new X dates entry * tags: [ExpireDates] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/ExpireDates' * responses: * 201: * description: The X dates entry was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/ExpireDates' */ /** * @swagger * /expiries/edit/{id}: * put: * summary: Update the X dates entry by ID * tags: [ExpireDates] * 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/ExpireDates' * 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: [ExpireDates] * 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' */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure