package Ġbr . com . j ir atorio . controller Ċ Ċ import Ġbr . com . j ir atorio . domain . external . External Board Ċ import Ġbr . com . j ir atorio . service . External Board Service Ċ import Ġorg . springframework . web . bind . annotation . GetMapping Ċ import Ġorg . springframework . web . bind . annotation . PathVariable Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ Ċ @ RestController Ċ @ RequestMapping ("/ projects ") Ċ class ĠProject Controller ( ĊĠĠĠ Ġprivate Ġval Ġboard DataProvider : ĠExternal Board Service , Ċ ) Ġ{ ĊĊĠĠĠ Ġ@ GetMapping ĊĠĠĠ Ġfun ĠfindAll (): ĠList < External Board > Ġ= ĊĠĠĠĠĠĠĠ Ġboard DataProvider . findAll () ĊĊĠĠĠ Ġ@ GetMapping ("/ { id }") ĊĠĠĠ Ġfun Ġfind ById (@ PathVariable Ġid : ĠLong ): ĠExternal Board Ġ= ĊĠĠĠĠĠĠĠ Ġboard DataProvider . findById ( id ) Ċ Ċ } Ċ