/
home
/
infinitibizsol
/
.trash
/
docs.2
/
user
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/docs.2/user/employmentInfo.js
/** * @swagger * components: * schemas: * EmploymentInfo: * type: object * required: * - date_hired * - date_terminated * - user_id * properties: * date_hired: * type: string * format: date * description: The date the individual was hired * date_terminated: * type: string * format: date * description: The date the individual's employment was terminated * reason_terminated: * type: string * description: The reason for the individual's termination * user_id: * type: string * description: The ID of the user who created this entry * example: * date_hired: "2021-09-01" * date_terminated: "2023-09-01" * reason_terminated: "No Reason" * user_id: "667dcaf3f52d0d7678ea7dea" * 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: EmploymentInfo * description: Employment information-related operations */ /** * @swagger * /employment-info/list: * get: * summary: Returns the list of employment information entries * tags: [EmploymentInfo] * security: * - bearerAuth: [] * parameters: * - in: query * name: user_id * schema: * type: string * required: false * description: ID of the user/agent ID * responses: * 200: * description: The list of employment information entries * content: * application/json: * schema: * type: array * items: * $ref: '#/components/schemas/EmploymentInfo' */ /** * @swagger * /employment-info/add: * post: * summary: Create a new employment information entry * tags: [EmploymentInfo] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/EmploymentInfo' * responses: * 201: * description: The employment information was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/EmploymentInfo' */ /** * @swagger * /employment-info/edit/{id}: * put: * summary: Update the employment information entry by ID * tags: [EmploymentInfo] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the employment information entry * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/EmploymentInfo' * responses: * 200: * description: The employment information entry was successfully updated * content: * application/json: * schema: * $ref: '#/components/schemas/UpdateResponse' */ /** * @swagger * /employment-info/delete/{id}: * delete: * summary: Delete the employment information entry by ID * tags: [EmploymentInfo] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the employment information entry * responses: * 200: * description: The employment information entry was successfully deleted * content: * application/json: * schema: * $ref: '#/components/schemas/DeleteResponse' */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure