package Ġcom . g lin boy . t apse ll . edge . controller Ċ Ċ import Ġcom . g lin boy . t apse ll . dto . Click Event Ċ import Ġcom . g lin boy . t apse ll . dto . Imp ression Event Ċ import Ġcom . g lin boy . t apse ll . edge . service . Event Service Api Ċ import Ġorg . springframework . http . Response Entity Ċ import Ġorg . springframework . web . bind . annotation . PostMapping Ċ import Ġorg . springframework . web . bind . annotation . RequestBody Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ import Ġjavax . validation . Valid Ċ Ċ @ RestController Ċ @ RequestMapping ("/ events ") Ċ class ĠEvent Controller ( private Ġval Ġevent Service : ĠEvent Service Api ) Ġ{ ĊĊĠĠĠ Ġ@ PostMapping ("/ imp ress ions ") ĊĠĠĠ Ġfun Ġimp ression EventHandler (@ Valid Ġ@ RequestBody Ġevent : ĠImp ression Event ): ĠResponseEntity < Imp ression Event > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġsend Imp ression Event Ġ= Ġevent Service . send Imp ression Event ( event ) ĊĠĠĠĠĠĠĠ Ġreturn ĠResponseEntity . ok ( send Imp ression Event ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ PostMapping ("/ click s ") ĊĠĠĠ Ġfun Ġclick EventHandler (@ Valid Ġ@ RequestBody Ġevent : ĠClick Event ): ĠResponseEntity < Void > Ġ{ ĊĠĠĠĠĠĠĠ Ġevent Service . send Click Event ( event ) ĊĠĠĠĠĠĠĠ Ġreturn ĠResponseEntity . ok (). build () ĊĠĠĠ Ġ} Ċ }