package Ġcom . example . kotlin _ example _ app . external čĊč Ċ import Ġcom . example . kotlin _ example _ app . ret rofit . Mongo Service RestApi č Ċ import Ġorg . springframework . beans . factory . annotation . Autowired č Ċ import Ġorg . springframework . beans . factory . annotation . Qualifier č Ċ import Ġorg . springframework . stereotype . Service č Ċ import Ġretrofit 2 . Ret rofit čĊč Ċ @ Service č Ċ class ĠMongo Rest Service Ġ{ čĊĠĠĠ Ġ@ Autowired čĊĠĠĠ Ġ@ Qualifier (" mongo Service Ret rofit ") čĊĠĠĠ Ġlateinit Ġvar Ġmongo Service Ret rofit : ĠRet rofit čĊčĊĠĠĠ Ġfun Ġfind ById ( id : ĠString ): ĠAny ? Ġ{ čĊĠĠĠĠĠĠĠ Ġval Ġmongo Service RestApi : ĠMongo Service RestApi Ġ= Ġmongo Service Ret rofit . create ( Mongo Service RestApi :: class . java ) čĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= Ġmongo Service RestApi . find User ById ( id ). execute () čĊĠĠĠĠĠĠĠ Ġreturn Ġresponse . body () čĊĠĠĠ Ġ} č Ċ }