-
Notifications
You must be signed in to change notification settings - Fork 0
Transaction APIs
-
GET: http://localhost:8080/transaction/lenderId/{lenderId}This GET API is used to get the transactions list using lenderId.
Request Parameter:
String: {lenderId}
Response Body:
[ { "amount": 0, "borrowerId": "string", "comment": "string", "date": "2020-05-27T10:57:33.586Z", "lenderId": "string", "transactionId": 0, "txnType": "string", "walletId": 0 } ]
-
GET: http://localhost:8080/transaction/lenderId/{lenderId}/borrowId/{borrowerId}This GET API is used to get the transactions list using lenderId and borrowId from database.
Request Parameter:
String: {lenderId}
String: {borrowerId}
Response Body:
[ { "amount": 0, "borrowerId": "string", "comment": "string", "date": "2020-05-27T10:57:33.586Z", "lenderId": "string", "transactionId": 0, "txnType": "string", "walletId": 0 } ]
-
GET: http://localhost:8080/transaction/lenderId/{lenderId}/date/{date}This GET API is used to get the transactions list using lenderId and date from database.
Request Parameter:
String: {lenderId}
String: {date}
Response Body:
[ { "amount": 0, "borrowerId": "string", "comment": "string", "date": "2020-05-27T10:57:33.586Z", "lenderId": "string", "transactionId": 0, "txnType": "string", "walletId": 0 } ]
-
GET: http://localhost:8080/transaction/lenderId/{lenderId}/startDate/{startDate}/endDate/{endDate}This GET API is used to get the transactions list using lenderId and between two dates from database.
Request Parameter:
String: {lenderId}
String: {startDate}
String: {endDate}
Response Body:
[ { "amount": 0, "borrowerId": "string", "comment": "string", "date": "2020-05-27T10:57:33.586Z", "lenderId": "string", "transactionId": 0, "txnType": "string", "walletId": 0 } ]
-
GET: http://localhost:8080/transaction/transactionsThis GET API is used to get the list of all transactions from Database.
Response Body:
[ { "amount": 0, "borrowerId": "string", "comment": "string", "date": "2020-05-27T10:57:33.586Z", "lenderId": "string", "transactionId": 0, "txnType": "string", "walletId": 0 } ]