@RestController
@RequestMapping(value="/api")
public class BankAccountResource
extends java.lang.Object
Constructor and Description |
---|
BankAccountResource(BankAccountService bankAccountService,
BankAccountQueryService bankAccountQueryService) |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<BankAccountDTO> |
createBankAccount(BankAccountDTO bankAccountDTO)
POST /bank-accounts : Create a new bankAccount.
|
org.springframework.http.ResponseEntity<java.lang.Void> |
deleteBankAccount(java.lang.Long id)
DELETE /bank-accounts/:id : delete the "id" bankAccount.
|
org.springframework.http.ResponseEntity<java.util.List<BankAccountDTO>> |
getAllBankAccounts(BankAccountCriteria criteria)
GET /bank-accounts : get all the bankAccounts.
|
org.springframework.http.ResponseEntity<BankAccountDTO> |
getBankAccount(java.lang.Long id)
GET /bank-accounts/:id : get the "id" bankAccount.
|
org.springframework.http.ResponseEntity<BankAccountDTO> |
updateBankAccount(BankAccountDTO bankAccountDTO)
PUT /bank-accounts : Updates an existing bankAccount.
|
public BankAccountResource(BankAccountService bankAccountService, BankAccountQueryService bankAccountQueryService)
@PostMapping(value="/bank-accounts") @Timed public org.springframework.http.ResponseEntity<BankAccountDTO> createBankAccount(@RequestBody BankAccountDTO bankAccountDTO) throws java.net.URISyntaxException
bankAccountDTO
- the bankAccountDTO to createjava.net.URISyntaxException
- if the Location URI syntax is incorrect@PutMapping(value="/bank-accounts") @Timed public org.springframework.http.ResponseEntity<BankAccountDTO> updateBankAccount(@RequestBody BankAccountDTO bankAccountDTO) throws java.net.URISyntaxException
bankAccountDTO
- the bankAccountDTO to updatejava.net.URISyntaxException
- if the Location URI syntax is incorrect@GetMapping(value="/bank-accounts") @Timed public org.springframework.http.ResponseEntity<java.util.List<BankAccountDTO>> getAllBankAccounts(BankAccountCriteria criteria)
criteria
- the criterias which the requested entities should match@GetMapping(value="/bank-accounts/{id}") @Timed public org.springframework.http.ResponseEntity<BankAccountDTO> getBankAccount(@PathVariable java.lang.Long id)
id
- the id of the bankAccountDTO to retrieve@DeleteMapping(value="/bank-accounts/{id}") @Timed public org.springframework.http.ResponseEntity<java.lang.Void> deleteBankAccount(@PathVariable java.lang.Long id)
id
- the id of the bankAccountDTO to deleteCopyright © 2017 Osgiliath. All rights reserved.