package Ġat . n ine y ards . blog . name cloud . controller Ċ Ċ import Ġat . n ine y ards . blog . name cloud . service . FirstName Service Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ Ċ @ RestController Ċ class ĠFirst Name Controller { ĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġlateinit Ġvar ĠfirstName Service : ĠFirst Name Service ĊĊĠĠĠ Ġ@ RequestMapping ("/ top 1 0 ") ĊĠĠĠ Ġfun Ġtop 1 0 Ġ() Ġ= ĠfirstName Service . get Top 1 0 () Ċ }