/
home
/
infinitibizsol
/
insurcrm.infinitibizsol.com
/
docs
/
common
/
File Upload :
llllll
Current File: /home/infinitibizsol/insurcrm.infinitibizsol.com/docs/common/folderFiles.js
/** * @swagger * components: * schemas: * FolderFiles: * type: object * required: * - file * - folder_id * properties: * file: * type: object * required: * - name * properties: * name: * type: string * description: The name of the file * type: * type: string * description: The type of the file (e.g., 'pdf', 'video') * title: * type: string * description: Title of the file * tags: * type: string * description: Tags associated with the file * description: * type: string * description: Description of the file * apply_description: * type: string * description: Application-specific description * line_of_business: * type: string * description: The line of business associated with the file * effective: * type: string * description: Effective date or status of the file * folder_id: * type: string * description: The ID of the associated folder * example: * file: * name: "Sample File" * type: "pdf" * title: "Important Document" * tags: "finance, report" * description: "Monthly financial report" * apply_description: "For internal use only" * line_of_business: "Finance" * effective: "2024-10-01" * folder_id: "60f8f0bce7c8b91c54d8c27d" * UpdateResponse: * type: object * properties: * message: * type: string * example: "Data updated successfully" * * DeleteResponse: * type: object * properties: * message: * type: string * example: "FolderFile and related data deleted successfully" * * securitySchemes: * bearerAuth: * type: http * scheme: bearer * bearerFormat: JWT */ /** * @swagger * tags: * - name: FolderFiles * description: Operations related to folder files */ /** * @swagger * /folder-files/list: * get: * summary: Returns the list of folder files * tags: [FolderFiles] * security: * - bearerAuth: [] * responses: * 200: * description: The list of folder files * content: * application/json: * schema: * type: array * items: * $ref: '#/components/schemas/FolderFiles' */ /** * @swagger * /folder-files/add: * post: * summary: Create a new folder file entry * tags: [FolderFiles] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/FolderFiles' * responses: * 201: * description: The folder file entry was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/FolderFiles' */ /** * @swagger * /folder-files/edit/{id}: * put: * summary: Update the folder file entry by ID * tags: [FolderFiles] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the folder file entry * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/FolderFiles' * responses: * 200: * description: The folder file entry was successfully updated * content: * application/json: * schema: * $ref: '#/components/schemas/UpdateResponse' * 404: * description: FolderFile not found */ /** * @swagger * /folder-files/delete/{id}: * delete: * summary: Delete the folder file entry by ID * tags: [FolderFiles] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the folder file entry * responses: * 200: * description: The folder file entry was successfully deleted * content: * application/json: * schema: * $ref: '#/components/schemas/DeleteResponse' * 404: * description: FolderFile not found */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure