@RestController @RequestMapping(path="/transaction") public class TransactionController extends Object
| Constructor and Description |
|---|
TransactionController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity |
createTransaction(AspspTransaction transaction) |
org.springframework.http.ResponseEntity<List<AspspTransaction>> |
readAllTransactions() |
org.springframework.http.ResponseEntity<AspspTransaction> |
readTransactionById(String transactionId,
String accountId) |
org.springframework.http.ResponseEntity<List<AspspTransaction>> |
readTransactionsByPeriod(String accountId,
LocalDate dateFrom,
LocalDate dateTo) |
@GetMapping(path="/") public org.springframework.http.ResponseEntity<List<AspspTransaction>> readAllTransactions()
@GetMapping(path="/{transaction-id}/{account-id}")
public org.springframework.http.ResponseEntity<AspspTransaction> readTransactionById(@PathVariable(value="transaction-id")
String transactionId,
@PathVariable(value="account-id")
String accountId)
@PostMapping(path="/")
public org.springframework.http.ResponseEntity createTransaction(@RequestBody
AspspTransaction transaction)
@GetMapping(path="/{account-id}")
public org.springframework.http.ResponseEntity<List<AspspTransaction>> readTransactionsByPeriod(@PathVariable(value="account-id")
String accountId,
@RequestParam(value="dateFrom") @DateTimeFormat(iso=DATE)
LocalDate dateFrom,
@RequestParam(value="dateTo") @DateTimeFormat(iso=DATE)
LocalDate dateTo)
Copyright © 2019. All rights reserved.