package Ġorg . ion project . core . class Section Ċ Ċ import Ġorg . ion project . core . common . Resource Identifier Annotation Ċ import Ġorg . ion project . core . common . Resource Ids Ċ import Ġorg . ion project . core . common . S ire n Ċ import Ġorg . ion project . core . common . Uri Ċ import Ġorg . springframework . http . Response Entity Ċ import Ġorg . springframework . web . bind . annotation . GetMapping Ċ import Ġorg . springframework . web . bind . annotation . PathVariable Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ Ċ @ RestController Ċ class ĠClass Section Controller ( private Ġval Ġrepo : ĠClass Section Repo ) Ġ{ ĊĊĠĠĠ Ġ@ Resource Identifier Annotation ( Resource Ids . GET _ CLASS _ SECTION , ĠResource Ids . VERSION _ 0 ) ĊĠĠĠ Ġ@ GetMapping ( Uri . class Section ById ) ĊĠĠĠ Ġfun Ġget ( ĊĠĠĠĠĠĠĠ Ġ@ PathVariable Ġcid : ĠInt , ĊĠĠĠĠĠĠĠ Ġ@ PathVariable Ġcal term : ĠString , ĊĠĠĠĠĠĠĠ Ġ@ PathVariable Ġsid : ĠString ĊĠĠĠ Ġ): ĠResponseEntity < S ire n > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcs Ġ= Ġrepo . get ( cid , Ġcal term , Ġsid ) ĊĊĠĠĠĠĠĠĠ Ġcs ?. let Ġ{ Ġreturn ĠResponseEntity . ok ( it . to S ire n ()) Ġ} ĊĠĠĠĠĠĠĠ Ġreturn ĠResponseEntity . not Found (). build () ĊĠĠĠ Ġ} Ċ } Ċ