Class ChartOfAccountController


  • @RestController
    public class ChartOfAccountController
    extends Object
    • 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.