@RestController public class ChartOfAccountController extends Object
| Constructor and Description |
|---|
ChartOfAccountController(Principal principal,
ChartOfAccountService chartOfAccountService) |
| Modifier and Type | Method and 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) |
public ChartOfAccountController(Principal principal, ChartOfAccountService chartOfAccountService)
@PostMapping(path="/coas") public org.springframework.http.ResponseEntity<Void> newChartOfAccount(ChartOfAccountBO chartOfAccount, org.springframework.web.util.UriBuilder uri)
@GetMapping(path="/coas/{id}")
public org.springframework.http.ResponseEntity<ChartOfAccountBO> findChartOfAccountsById(@PathVariable(value="id")
String id)
@GetMapping(path="/coas",
params="name")
public org.springframework.http.ResponseEntity<ChartOfAccountBO> findChartOfAccountsByName(@RequestParam(name="name")
String name)
name - the name of chart of accountCopyright © 2020. All rights reserved.