/
home
/
infinitibizsol
/
.trash
/
docs.5
/
policy
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/docs.5/policy/policyAttachments.js
/** * @swagger * components: * schemas: * PolicyAttachments: * type: object * properties: * attachment_type: * type: string * attachment_description: * type: string * responsibility: * type: string * additional_description: * type: string * policy_id: * type: string * format: objectId * example: * attachment_type: "Document" * attachment_description: "Signed contract" * responsibility: "Client" * additional_description: "This document confirms the agreement between the client and the company." * 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: PolicyAttachments * description: Operations related to policy attachments information */ /** * @swagger * /policy-attachments/list: * get: * summary: Returns the list of binder information * tags: [PolicyAttachments] * 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/PolicyAttachments' */ /** * @swagger * /policy-attachments/add: * post: * summary: Create a new binder information entry * tags: [PolicyAttachments] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/PolicyAttachments' * responses: * 201: * description: The binder information entry was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/PolicyAttachments' */ /** * @swagger * /policy-attachments/edit/{id}: * put: * summary: Update the policy attachments entry by ID * tags: [PolicyAttachments] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the policy attachments entry * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/PolicyAttachments' * responses: * 200: * description: The policy attachments entry was successfully updated * content: * application/json: * schema: * $ref: '#/components/schemas/UpdateResponse' */ /** * @swagger * /policy-attachments/delete/{id}: * delete: * summary: Delete the policy attachments entry by ID * tags: [PolicyAttachments] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the policy attachments entry * responses: * 200: * description: The policy attachments entry was successfully deleted * content: * application/json: * schema: * $ref: '#/components/schemas/DeleteResponse' */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure