Skip to content

Transaction APIs

Sahil Kharya edited this page May 27, 2020 · 2 revisions

These are all Transaction APIs in this Project:


  • 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/transactions

    This 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 } ]

Clone this wiki locally