Class ChartOfAccountController
- java.lang.Object
-
- de.adorsys.ledgers.rest.posting.controller.ChartOfAccountController
-
@RestController public class ChartOfAccountController extends Object
-
-
Constructor Summary
Constructors Constructor Description ChartOfAccountController(Principal principal, ChartOfAccountService chartOfAccountService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<ChartOfAccountBO>findChartOfAccountsById(String id)org.springframework.http.ResponseEntity<ChartOfAccountBO>findChartOfAccountsByName(String name)List all chart of accounts with the given name.org.springframework.http.ResponseEntity<Void>newChartOfAccount(ChartOfAccountBO chartOfAccount, org.springframework.web.util.UriBuilder uri)
-
-
-
Constructor Detail
-
ChartOfAccountController
public ChartOfAccountController(Principal principal, ChartOfAccountService chartOfAccountService)
-
-
Method Detail
-
newChartOfAccount
@PostMapping(path="/coas") public org.springframework.http.ResponseEntity<Void> newChartOfAccount(ChartOfAccountBO chartOfAccount, org.springframework.web.util.UriBuilder uri)
-
findChartOfAccountsById
@GetMapping(path="/coas/{id}") public org.springframework.http.ResponseEntity<ChartOfAccountBO> findChartOfAccountsById(@PathVariable("id") String id)
-
findChartOfAccountsByName
@GetMapping(path="/coas", params="name") public org.springframework.http.ResponseEntity<ChartOfAccountBO> findChartOfAccountsByName(@RequestParam(name="name") String name)List all chart of accounts with the given name. These are generally different versions of the same chart of account.- Parameters:
name- the name of chart of account- Returns:
- an empty list if no chart of account with the given name.
-
-