/
home
/
infinitibizsol
/
testingcrm.infinitibizsol.com
/
docs
/
File Upload :
llllll
Current File: /home/infinitibizsol/testingcrm.infinitibizsol.com/docs/client.js
/** * @swagger * components: * schemas: * Client: * type: object * required: * - full_name * properties: * full_name: * type: string * description: The full name of the client * email: * type: string * description: The full name of the client * contact_no: * type: string * description: The contact number of the client * queues: * type: string * description: Queue-related information for the client * payments: * type: string * description: Payment-related details of the client * documents: * type: string * description: Associated documents of the client * additional_info: * type: string * description: Additional information about the client * example: * full_name: "Jane" * email: "doe@gmail.com" * contact_no: "+1234567890" * queues: "Queue 1" * payments: "Paid" * documents: "Document 1, Document 2" * additional_info: "Preferred customer" */ /** * @swagger * tags: * - name: Client * description: Parent tag for client-related operations */ /** * @swagger * /api/v1/client/list: * get: * summary: Returns the list of all clients * tags: [Client] * security: * - bearerAuth: [] * responses: * 200: * description: The list of categories * content: * application/json: * schema: * type: array * items: * $ref: '#/components/schemas/Client' */ /** * @swagger * /api/v1/client/create: * post: * summary: Create a new client * tags: [Client] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/Client' * responses: * 201: * description: The client was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/Client' */ /** * @swagger * /api/v1/client/single/{id}: * get: * summary: Get a client by ID * tags: [Client] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The client ID * responses: * 200: * description: The client was retrieved successfully * content: * application/json: * schema: * $ref: '#/components/schemas/Client' */ /** * @swagger * /api/v1/client/edit/{id}: * put: * summary: Update client by ID * tags: [Client] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The client ID * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/Client' * responses: * 200: * description: The client was updated * content: * application/json: * schema: * $ref: '#/components/schemas/UserUpdateResponse' */ /** * @swagger * /api/v1/client/delete/{id}: * delete: * summary: Remove a client by ID * tags: [Client] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The client ID * responses: * 200: * description: The client was deleted * content: * application/json: * schema: * $ref: '#/components/schemas/UserDeleteResponse' */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure