package Ġcom . car service . api Ċ Ċ import Ġcom . car service . models . views . Car Name View Ċ import Ġcom . car service . services . Info Service Ċ import Ġorg . springframework . data . domain . Page Ċ import Ġorg . springframework . data . domain . Page able Ċ import Ġorg . springframework . data . web . Page able Default Ċ import Ġorg . springframework . http . Response Entity Ċ import Ġorg . springframework . web . bind . annotation . GetMapping Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ Ċ /** Ċ Ġ* ĠREST Ġcontroller Ġfor Ġgeneral Ġinformation Ċ Ġ*/ Ċ @ RestController Ċ @ RequestMapping ( value Ġ= Ġ["/ api / v 1 / info "]) Ċ class ĠInfo Controller ( ĊĠĠĠ Ġprivate Ġval Ġinfo Service : ĠInfo Service Ċ ) Ġ{ ĊĊĠĠĠ Ġ@ GetMapping ( path Ġ= Ġ["/ car - names / used "]) ĊĠĠĠ Ġfun Ġfind Used Car Names (): ĠResponseEntity < List < Car Name View >> Ġ= ĊĠĠĠĠĠĠĠ ĠResponseEntity . ok ( info Service . find Used Car Names ()) ĊĊĠĠĠ Ġ@ GetMapping ( path Ġ= Ġ["/ car - names "]) ĊĠĠĠ Ġfun Ġfind Car Names ( ĊĠĠĠĠĠĠĠ Ġ@ Page able Default ( size Ġ= Ġ 1 0 ) Ġpage able : ĠPage able ĊĠĠĠ Ġ): ĠResponseEntity < Page < Car Name View >> Ġ= ĊĠĠĠĠĠĠĠ ĠResponseEntity . ok ( info Service . findAll Car Names ( page able )) Ċ } Ċ