package Ġch . hell or in . chall eng ames . rest . ranking Ċ Ċ import Ġch . hell or in . chall eng ames . Ranking Data Dto Ċ import Ġch . hell or in . chall eng ames . service . ranking . IR ank ing Service Ċ import Ġorg . springframework . http . HttpStatus Ċ import Ġorg . springframework . web . bind . annotation . GetMapping Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . ResponseStatus Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ Ċ @ RestController Ċ @ RequestMapping ("/ ranking ") Ċ class ĠRank ing Facade ( private Ġval Ġranking Service : ĠI Ranking Service ) Ġ{ ĊĊĠĠĠ Ġ@ GetMapping ( pro duces Ġ= Ġ[" application / json "]) ĊĠĠĠ Ġ@ ResponseStatus ( HttpStatus . OK ) ĊĠĠĠ Ġfun Ġget Ranking () Ġ: ĠRank ing Data Dto Ġ= Ġranking Service . get Ranking (). let Ġ{ ĠRank ing Data Dto ( it . nb Ch allenges ) Ġ} Ċ Ċ }