package Ġcom . park q . backend . api . company Ċ Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . data . domain . Page able Ċ import Ġorg . springframework . web . bind . annotation .* Ċ Ċ @ RestController Ċ @ RequestMapping ("/ api / company ") Ċ class ĠCompany Api Ġ{ ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġlateinit Ġvar Ġservice : ĠCompany Service ĊĊĠĠĠ Ġ@ GetMapping ĊĠĠĠ Ġfun Ġget Comp anies ( page able : ĠPage able ) Ġ= Ġservice . get Comp anies ( page able ) ĊĊĠĠĠ Ġ@ PostMapping ĊĠĠĠ Ġfun Ġupdate Company (@ RequestBody Ġcompany Ġ: ĠCompany DTO ) Ġ= Ġservice . update Company ( company ) ĊĊĠĠĠ Ġ@ Delete Mapping ĊĠĠĠ Ġfun Ġdelete Company (@ RequestBody Ġcompany Ġ: ĠCompany DTO ) Ġ= Ġservice . delete Company ( company ) Ċ }