This commit is contained in:
2024-11-17 15:37:47 +01:00
parent d41c876258
commit 4719cd3e9a
3 changed files with 29 additions and 2 deletions
@@ -141,6 +141,18 @@ public class TransactionResource {
);
}
@GetMapping("/forAccount/{userAccountId}")
public List<TransactionDTO> getAllTransactionsForAccountId(
@PathVariable(value = "userAccountId", required = false) final Long userAccountId,
@RequestParam(name = "eagerload", required = false, defaultValue = "true") boolean eagerload
) {
List<TransactionDTO> allTransactions = getAllTransactions(true);
if (userAccountId != null) {
// allTransactions.removeFirst();
}
return allTransactions;
}
/**
* {@code GET /transactions} : get all the transactions.
*