Swagger array of object update : suseendhiran

This commit is contained in:
suseendhiran17 2022-07-29 10:21:42 +05:30
parent b6c81a9d23
commit e3571d7d42
2 changed files with 171 additions and 167 deletions

View File

@ -96,7 +96,7 @@ exports.CreateObligationBankStatement = async (req, res) =>
} //end of try catch } //end of try catch
}; };
// update bank statement ( is_active = 0) then create new bank statement // update Obligation Bank Statement
exports.UpdateObligationBankStatement = async (req, res) => exports.UpdateObligationBankStatement = async (req, res) =>
{ {
try try
@ -180,7 +180,7 @@ exports.CreateObligationEmiTrackingMonth = async (req, res) =>
}; };
// update EMi Tracking ( is_active = 0) then create new bank statement // update EMi Tracking
exports.UpdateObligationEmiTracking = async (req, res) => exports.UpdateObligationEmiTracking = async (req, res) =>
{ {
try try
@ -262,8 +262,8 @@ exports.CreateRepaymentTrackRecordMaster = async (req, res) =>
}; };
// update and create new RepaymentTrackRecordMaster // updat RepaymentTrackRecord
exports.UpdateRepaymentTrackRecordMaster = async (req, res) => exports.UpdateRepaymentTrackRecord = async (req, res) =>
{ {
try try
{ {

View File

@ -238,128 +238,130 @@ router.post("/createObligationMaster",Mycontroller.CreateObligationMaster)
* @swagger * @swagger
* definitions: * definitions:
* updateObligationBankStatement: * updateObligationBankStatement:
* type: object * type: array
* properties: * items:
* id: * type: object
* type: integer * properties:
* description: id * id:
* example: 1 * type: integer
* los_id: * description: id
* type: string * example: 1
* description: losid * los_id:
* example: 123ab * type: string
* lender: * description: losid
* type: string * example: 123ab
* description: lender * lender:
* example: name * type: string
* loan_type: * description: lender
* type: string * example: name
* description: loantype * loan_type:
* example: Credit Card * type: string
* loan_availed_sanctioned_amount: * description: loantype
* type: integer * example: Credit Card
* description: loanAvailedSanctionedAmount * loan_availed_sanctioned_amount:
* example: 10000 * type: integer
* name_of_bank: * description: loanAvailedSanctionedAmount
* type: string * example: 10000
* description: bankName * name_of_bank:
* example: sbi * type: string
* loan_in_name_of_ac_type: * description: bankName
* type: string * example: sbi
* description: nameOfAcType * loan_in_name_of_ac_type:
* example: Applicant * type: string
* loan_ownership_status: * description: nameOfAcType
* type: string * example: Applicant
* description: LoanOwnershipStatus * loan_ownership_status:
* example: Joint * type: string
* roi: * description: LoanOwnershipStatus
* type: string * example: Joint
* description: roi * roi:
* example: 10% * type: string
* avg_peak_util_of_the_OD_or_CC: * description: roi
* type: string * example: 10%
* description: avgPeakUtilOfTheOD_or_CC * avg_peak_util_of_the_OD_or_CC:
* example: abc * type: string
* nature_of_loan: * description: avgPeakUtilOfTheOD_or_CC
* type: string * example: abc
* description: natureOfLoan * nature_of_loan:
* example: Unsecured * type: string
* loan_identification_source: * description: natureOfLoan
* type: string * example: Unsecured
* description: loanIdentificationSource * loan_identification_source:
* example: Credit Bureau Report * type: string
* sanction_date: * description: loanIdentificationSource
* type: string * example: Credit Bureau Report
* description: sanctionDate * sanction_date:
* example: "10-2-2020" * type: string
* principal_outstanding: * description: sanctionDate
* type: integer * example: "10-2-2020"
* description: principalOutstanding * principal_outstanding:
* example: 1 * type: integer
* monthly_oblig: * description: principalOutstanding
* type: integer * example: 1
* description: monthlyOblig * monthly_oblig:
* example: 1 * type: integer
* total_loan_tenure_months: * description: monthlyOblig
* type: integer * example: 1
* description: totalLoanTenureMonths * total_loan_tenure_months:
* example: 1 * type: integer
* no_of_instalments_paid: * description: totalLoanTenureMonths
* type: integer * example: 1
* description: noOfInstalmentsPaid * no_of_instalments_paid:
* example: 1 * type: integer
* balance_tenor_months: * description: noOfInstalmentsPaid
* type: integer * example: 1
* description: balanceTenorMonths * balance_tenor_months:
* example: 1 * type: integer
* loan_status_or_remarks: * description: balanceTenorMonths
* type: string * example: 1
* description: loanStatusOrRemarks * loan_status_or_remarks:
* example: Positive * type: string
* consider_in_oblig: * description: loanStatusOrRemarks
* type: string * example: Positive
* description: considerInOblig * consider_in_oblig:
* example: No * type: string
* reason_for_not_considering_in_oblig: * description: considerInOblig
* type: string * example: No
* description: reasonForNotConsideringInOblig * reason_for_not_considering_in_oblig:
* example: Already Closed * type: string
* charge_filed_with_roc: * description: reasonForNotConsideringInOblig
* type: string * example: Already Closed
* description: chargeFiledWithRoc * charge_filed_with_roc:
* example: Yes * type: string
* emi_tracking_month_1: * description: chargeFiledWithRoc
* type: integer * example: Yes
* description: emiTrackingMonth_1 * emi_tracking_month_1:
* example: 1 * type: integer
* emi_tracking_month_2: * description: emiTrackingMonth_1
* type: integer * example: 1
* description: emiTrackingMonth_2 * emi_tracking_month_2:
* example: 1 * type: integer
* emi_tracking_month_3: * description: emiTrackingMonth_2
* type: integer * example: 1
* description: emiTrackingMonth_3 * emi_tracking_month_3:
* example: 1 * type: integer
* emi_tracking_month_4: * description: emiTrackingMonth_3
* type: integer * example: 1
* description: emiTrackingMonth_4 * emi_tracking_month_4:
* example: 1 * type: integer
* emi_tracking_month_5: * description: emiTrackingMonth_4
* type: integer * example: 1
* description: emiTrackingMonth_5 * emi_tracking_month_5:
* example: 1 * type: integer
* emi_tracking_month_6: * description: emiTrackingMonth_5
* type: integer * example: 1
* description: emiTrackingMonth_6 * emi_tracking_month_6:
* example: 1 * type: integer
* item_order: * description: emiTrackingMonth_6
* type: integer * example: 1
* description: ordering key * item_order:
* example: 1 * type: integer
* is_active: * description: ordering key
* type: integer * example: 1
* description: isActive * is_active:
* example: 1 * type: integer
* description: isActive
* example: 1
*/ */
/** /**
* @swagger * @swagger
@ -584,65 +586,67 @@ router.get("/getRepaymentTrackRecordMaster",Mycontroller.RepaymentTrackRecordMas
router.post("/createRepaymentTrackRecordMaster",Mycontroller.CreateRepaymentTrackRecordMaster) router.post("/createRepaymentTrackRecordMaster",Mycontroller.CreateRepaymentTrackRecordMaster)
// update Obligation Emi Tracking // Update Repayment Track Record
/** /**
* @swagger * @swagger
* definitions: * definitions:
* updateRepaymentTrackRecordMaster: * UpdateRepaymentTrackRecord:
* type: object * type: array
* properties: * items:
* id: * type: object
* type: integer * properties:
* description: id * id:
* example: 1 * type: integer
* los_id: * description: id
* type: string * example: 1
* description: los_id * los_id:
* example: 123abc * type: string
* program: * description: los_id
* type: string * example: 123abc
* description: result * program:
* example: banking_and_gst * type: string
* track_record_items_key: * description: result
* type: string * example: banking_and_gst
* description: track record items * track_record_items_key:
* example: "bounce_in_last_6_months" * type: string
* value: * description: track record items
* type: string * example: "bounce_in_last_6_months"
* description: value * value:
* example: Nil * type: string
* sub_value: * description: value
* type: string * example: Nil
* description: sub value * sub_value:
* example: Paid Within 5 days * type: string
* result: * description: sub value
* type: string * example: Paid Within 5 days
* description: result * result:
* example: No Deviation * type: string
* is_active: * description: result
* type: integer * example: No Deviation
* description: isActive * is_active:
* example: 1 * type: integer
* description: isActive
* example: 1
*/ */
/** /**
* @swagger * @swagger
* /api/updateRepaymentTrackRecordMaster: * /api/UpdateRepaymentTrackRecord:
* post: * post:
* summary: update Repayment TrackRecord Master details * summary: update Repayment TrackRecord details
* description: update a Repayment TrackRecord Master * description: update a Repayment TrackRecord
* requestBody: * requestBody:
* content: * content:
* application/json: * application/json:
* schema: * schema:
* $ref: '#/definitions/updateRepaymentTrackRecordMaster' * $ref: '#/definitions/UpdateRepaymentTrackRecord'
* responses: * responses:
* 200: * 200:
* description: update Repayment TrackRecord Master * description: update Repayment TrackRecord Master
* 500: * 500:
* description: failure in inserting Repayment TrackRecord Master * description: failure in inserting Repayment TrackRecord Master
*/ */
router.post("/updateRepaymentTrackRecordMaster",Mycontroller.UpdateRepaymentTrackRecordMaster) router.post("/UpdateRepaymentTrackRecord",Mycontroller.UpdateRepaymentTrackRecord)
// get Obligation burear bankstatement // get Obligation burear bankstatement