package Ġorg . cn gr . webapp . controllers Ċ Ċ import Ġcom . fasterxml . jackson . databind . ObjectMapper Ċ import Ġio . swagger . annotations . Api Ċ import Ġorg . cn gr . webapp . configurations . Git Config Ċ import Ġorg . cn gr . webapp . model . Version Model Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . http . MediaType Ċ import Ġorg . springframework . http . Response Entity Ċ import Ġorg . springframework . web . bind . annotation . GetMapping Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ import Ġspring fox . documentation . annotations . Api Ignore Ċ Ċ @ RestController Ċ @ Api ( value =" Version Ġapi ") Ċ class ĠVersion Controller ( Ġ@ Autowired Ġval Ġgit Config : ĠGit Config Ġ) Ġ{ ĊĊĠĠĠ Ġ@ GetMapping ( value Ġ= Ġ["/ version "], Ġproduces Ġ= Ġ[ MediaType . APPLICATION _ JSON _ VALUE ]) ĊĠĠĠ Ġfun Ġhello World (): ĠResponseEntity < Any ?> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠResponseEntity . ok ( ObjectMapper (). writeValue AsString ( Version Model ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcommit Id Ġ= Ġgit Config . commit Id , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġnow Ġ= ĠSystem . currentTimeMillis (). toString (), ĊĠĠĠĠĠĠĠ Ġ))) ĊĠĠĠ Ġ} Ċ } Ċ