/
home
/
infinitibizsol
/
.trash
/
docs.2
/
user
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/docs.2/user/accountInfo.js
/** * @swagger * components: * schemas: * AccountInformation: * type: object * required: * - customer_number * - priority * - customer_since * - agent_id * - csr * - created_by * - customer_source * - source_detail * - contact_id * properties: * customer_number: * type: string * description: The unique identifier for the customer * priority: * type: string * enum: ["low", "high", "normal"] * description: The priority level of the customer * customer_since: * type: string * format: date * description: Customer status or details since the specified period * agent_id: * type: string * description: The ID of the agent associated with the customer * csr: * type: string * description: The Customer Service Representative (CSR) information * created_by: * type: string * description: The ID of the user who created the account information * customer_source: * type: string * description: The source from which the customer was acquired * source_detail: * type: string * description: Details about the customer source * contact_id: * type: string * description: The ID of the associated contact * example: * customer_number: "customer1234" * priority: "high" * customer_since: "2022-01-01" * agent_id: "666a1adb4a817baa96f0387b" * csr: "CSR1" * customer_source: "Social Media" * source_detail: "Source Details" * contact_id: "6679d98f6bc36cd891ccab49" * 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: AccountInformation * description: Operations related to account information */ /** * @swagger * /account-information/list: * get: * summary: Returns the list of account information * tags: [AccountInformation] * security: * - bearerAuth: [] * parameters: * - in: query * name: contact_id * schema: * type: string * required: true * description: ID of the contact * responses: * 200: * description: The list of account information * content: * application/json: * schema: * type: array * items: * $ref: '#/components/schemas/AccountInformation' */ /** * @swagger * /account-information/add: * post: * summary: Create a new account information entry ENUM value should be one of them ["high","low","normal"] * tags: [AccountInformation] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/AccountInformation' * responses: * 201: * description: The account information entry was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/AccountInformation' */ /** * @swagger * /account-information/edit/{id}: * put: * summary: Update the account information entry by ID * tags: [AccountInformation] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the account information entry * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/AccountInformation' * responses: * 200: * description: The account information entry was successfully updated * content: * application/json: * schema: * $ref: '#/components/schemas/UpdateResponse' */ /** * @swagger * /account-information/delete/{id}: * delete: * summary: Delete the account information entry by ID * tags: [AccountInformation] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the account information entry * responses: * 200: * description: The account information entry was successfully deleted * content: * application/json: * schema: * $ref: '#/components/schemas/DeleteResponse' */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure