package Ġcom . val hall ag ame . qa . controllers . public Ċ Ċ import Ġcom . val hall ag ame . qa . dao . Replay Ċ import Ġcom . val hall ag ame . qa . service . Replay Service Ċ import Ġorg . slf 4 j . LoggerFactory Ċ 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 Ċ Ċ @ RestController Ċ @ RequestMapping ("/ public / replay ") Ċ class ĠPublic Replay Controller ( private Ġval Ġreplay Service : ĠRe play Service ) Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġlogger Ġ= ĠLoggerFactory . getLogger ( Public Replay Controller :: class . java ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ PostMapping ( consume s Ġ= Ġ[" application / json "]) ĊĠĠĠ Ġfun Ġadd Replay (@ RequestBody Ġreplay : ĠRe play ): ĠMap < String , ĠString > Ġ{ ĊĠĠĠĠĠĠĠ Ġlogger . info ( replay . toString ()) ĊĠĠĠĠĠĠĠ Ġreplay Service . add Replay ( replay ) ĊĠĠĠĠĠĠĠ Ġreturn Ġmap Of (" status " Ġto Ġ" ok ") ĊĠĠĠ Ġ} Ċ }