package Ġio . must el id ae . ot ter . ne ot rop ical . api . domain . booking . api Ċ Ċ import Ġio . must el id ae . ot ter . ne ot rop ical . api . common . Reply Ċ import Ġio . must el id ae . ot ter . ne ot rop ical . api . common . to Reply Ċ import Ġio . must el id ae . ot ter . ne ot rop ical . api . domain . booking . Booking Finder Ċ import Ġio . must el id ae . ot ter . ne ot rop ical . api . domain . booking . Booking Interaction Ċ import Ġio . must el id ae . ot ter . ne ot rop ical . api . permission . Data Authentication Ċ import Ġio . must el id ae . ot ter . ne ot rop ical . api . permission . Role Header Ċ import Ġio . swagger . v 3 . o as . annotations . Operation Ċ import Ġio . swagger . v 3 . o as . annotations . tags . Tag Ċ import Ġorg . springframework . web . bind . annotation . PathVariable Ċ import Ġorg . springframework . web . bind . annotation . Put Mapping Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ Ċ @ Tag ( name Ġ= Ġ" Booking ") Ċ @ RestController Ċ @ RequestMapping ("/ v 1 / bookings ") Ċ class ĠBook ing Controller ( ĊĠĠĠ Ġprivate Ġval Ġbooking Finder : ĠBook ing Finder , ĊĠĠĠ Ġprivate Ġval Ġbooking Interaction : ĠBook ing Interaction Ċ ) Ġ{ ĊĊĠĠĠ Ġ@ Operation ( summary Ġ= Ġ" Confirm ĠBook ", Ġdescription Ġ= Ġ" When Ġthe Ġreservation Ġis Ġconfirmed , Ġthe Ġstatus Ġof Ġthe Ġbooking Ġchanges Ġto Ġ' BOOK ED '. ") ĊĠĠĠ Ġ@ Put Mapping ("{ booking Ids }") ĊĠĠĠ Ġfun Ġconfirm ( ĊĠĠĠĠĠĠĠ Ġ@ PathVariable Ġbooking Ids : ĠList < Long > ĊĠĠĠ Ġ): ĠReply < Unit > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġbook ings Ġ= Ġbooking Finder . findAll ById s ( booking Ids ) ĊĠĠĠĠĠĠĠ ĠData Authentication ( Role Header . X System ). valid OrThrow ( bookings ) ĊĠĠĠĠĠĠĠ Ġbooking Interaction . confirm ( booking Ids ) ĊĠĠĠĠĠĠĠ Ġreturn ĠUnit . to Reply () ĊĠĠĠ Ġ} Ċ } Ċ