/
home
/
infinitibizsol
/
.trash
/
docs.5
/
user
/
File Upload :
llllll
Current File: /home/infinitibizsol/.trash/docs.5/user/additonalContact.js
/** * @swagger * components: * schemas: * AdditionalContact: * type: object * required: * - business_owner * - residency_type * - comments * - salutation * - nickname * - first_name * - middle_name * - last_name * - relationship_type * - relationship_to_primary * - street * - apt_or_suite * - city * - state_or_province * - country * - zip_code * - date_of_birth * - marital_status * - gender * - social_security * - driver_license_number * - contact_web_page * - industry * - occupation * - preferred_language * - add_number * - add_email * - contact_id * properties: * business_owner: * type: boolean * description: Indicates if the individual is a business owner * residency_type: * type: string * description: The type of residency * comments: * type: string * description: Any additional comments * salutation: * type: string * description: The salutation of the contact (e.g., Mr., Mrs., Dr.) * nickname: * type: string * description: The nickname of the contact * first_name: * type: string * description: The first name of the contact * middle_name: * type: string * description: The middle name of the contact * last_name: * type: string * description: The last name of the contact * relationship_type: * type: string * description: The type of relationship with the primary individual * relationship_to_primary: * type: string * description: The nature of the relationship to the primary individual * street: * type: string * description: The street address * apt_or_suite: * type: string * description: The apartment or suite number, if any * city: * type: string * description: The city of the contact * state_or_province: * type: string * description: The state or province of the contact * country: * type: string * description: The country of the contact * zip_code: * type: number * description: The ZIP code or postal code * date_of_birth: * type: string * description: The date of birth * marital_status: * type: string * description: The marital status * gender: * type: string * description: The gender * social_security: * type: string * description: The social security number * driver_license_number: * type: string * description: The driver's license number * contact_web_page: * type: string * description: The contact's web page * industry: * type: string * description: The industry of employment * occupation: * type: string * description: The occupation * preferred_language: * type: string * description: The preferred language * add_number: * type: array * items: * type: object * properties: * value: * type: string * description: The contact number * type: * type: string * description: The type of contact number (e.g., mobile, home, office) * ext: * type: string * description: The extension number, if any * add_email: * type: array * items: * type: object * properties: * value: * type: string * description: The email address * type: * type: string * description: The type of email (e.g., personal, work) * ext: * type: string * description: The extension, if any * contact_id: * type: string * description: The ID of the associated contact * example: * business_owner: true * residency_type: "Permanent Resident" * comments: "No additional comments at this time." * salutation: "Mr." * nickname: "Johnny" * first_name: "John" * middle_name: "A." * last_name: "Doe" * relationship_type: "Friend" * relationship_to_primary: "College Roommate" * street: "123 Elm Street" * apt_or_suite: "Apt 4B" * city: "Springfield" * state_or_province: "IL" * country: "United States" * zip_code: 4444 * date_of_birth: "1985-10-15" * marital_status: "Single" * gender: "Male" * social_security: "123-45-6789" * driver_license_number: "D12345678" * contact_web_page: "https://www.johndoe.com" * industry: "Information Technology" * occupation: "Software Developer" * preferred_language: "English" * add_number: * - value: "+1-555-123-4567" * type: "Mobile" * ext: "" * - value: "+1-555-987-6543" * type: "Office" * ext: "123" * add_email: * - value: "john.doe@example.com" * type: "Personal" * ext: "" * - value: "john.doe@work.com" * type: "Work" * ext: "" * contact_id: "6679d98f6bc36cd891ccab49" * 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: AdditionalContact * description: Operations related to additional contacts */ /** * @swagger * /additional-contact/list: * get: * summary: Returns the list of additional contacts * tags: [AdditionalContact] * security: * - bearerAuth: [] * responses: * 200: * description: The list of additional contacts * content: * application/json: * schema: * type: array * items: * $ref: '#/components/schemas/AdditionalContact' */ /** * @swagger * /additional-contact/add: * post: * summary: Create a new additional contact entry * tags: [AdditionalContact] * security: * - bearerAuth: [] * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/AdditionalContact' * responses: * 201: * description: The additional contact entry was successfully created * content: * application/json: * schema: * $ref: '#/components/schemas/AdditionalContact' */ /** * @swagger * /additional-contact/edit/{id}: * put: * summary: Update the additional contact entry by ID * tags: [AdditionalContact] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the additional contact entry * requestBody: * required: true * content: * application/json: * schema: * $ref: '#/components/schemas/AdditionalContact' * responses: * 200: * description: The additional contact entry was successfully updated * content: * application/json: * schema: * $ref: '#/components/schemas/UpdateResponse' */ /** * @swagger * /additional-contact/delete/{id}: * delete: * summary: Delete the additional contact entry by ID * tags: [AdditionalContact] * security: * - bearerAuth: [] * parameters: * - in: path * name: id * schema: * type: string * required: true * description: The ID of the additional contact entry * responses: * 200: * description: The additional contact entry was successfully deleted * content: * application/json: * schema: * $ref: '#/components/schemas/DeleteResponse' */ "use strict";
Copyright ©2k19 -
Hexid
|
Tex7ure