package Ġcom . google . sh iny ay . controller Ċ Ċ import Ġcom . google . sh iny ay . logger Ċ import Ġcom . google . sh iny ay . model . Organization Ċ import Ġcom . google . sh iny ay . repository . Organization Repository Ċ import Ġorg . springframework . web . bind . annotation .* Ċ Ċ @ RestController Ċ class ĠOrganization Repository ( val Ġrepository : ĠOrganization Repository ) Ġ{ ĊĊĠĠĠ Ġ@ GetMapping ("/") ĊĠĠĠ Ġfun ĠfindAll (): ĠMutable Iterable < Organization > Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . info (" Organization Ġfind ") ĊĠĠĠĠĠĠĠ Ġreturn Ġrepository . findAll () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ GetMapping ("/ { id }") ĊĠĠĠ Ġfun Ġfind ById (@ PathVariable (" id ") Ġid : ĠString ): ĠOrganization Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . info (" Organization Ġfind : Ġid =$ id ") ĊĠĠĠĠĠĠĠ Ġreturn Ġrepository . findById ( id ). get () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ PostMapping ("/") ĊĠĠĠ Ġfun Ġadd (@ RequestBody Ġorganization : ĠOrganization ): ĠOrganization Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . info (" Organization Ġadd : Ġ$ organization ") ĊĠĠĠĠĠĠĠ Ġreturn Ġrepository . save ( organization ) ĊĠĠĠ Ġ} Ċ }