package Ġno . nav . f amil ie . ef . info try gd . feed . rest Ċ Ċ import Ġno . nav . f amil ie . ef . info try gd . feed . service . Info try gd Feed Service Ċ import Ġno . nav . f amil ie . kon tr ak ter . ef . info try gd . Opp rett Per i ode H en del se Dto Ċ import Ġno . nav . f amil ie . kon tr ak ter . ef . info try gd . Opp rett Start Be handling H en del se Dto Ċ import Ġno . nav . f amil ie . kon tr ak ter . ef . info try gd . Opp rett V ed tak H en del se Dto Ċ import Ġno . nav . f amil ie . kon tr ak ter . ef . fel les . St Ã¸ nad Type Ċ import Ġno . nav . security . token . support . core . api . Protected With Claims Ċ import Ġorg . springframework . http . MediaType Ċ 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 Ċ Ċ @ RestController Ċ @ RequestMapping ("/ api / entry ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġconsume s Ġ= Ġ[ MediaType . APPLICATION _ JSON _ VALUE ], ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġproduces Ġ= Ġ[ MediaType . APPLICATION _ JSON _ VALUE ]) Ċ @ Protected With Claims ( issuer Ġ= Ġ" azure ad ", Ġclaim Map =[" roles = access _ as _ application "]) Ċ class ĠO pp rett Entry Controller ( private Ġval Ġinfo try gd Feed Service : ĠInfo try gd Feed Service ) Ġ{ ĊĊĠĠĠ Ġ@ PostMapping ("/ ved tak ") ĊĠĠĠ Ġfun Ġlag Ny V ed t aks Mel ding (@ RequestBody Ġopp rett Entry Dto : ĠO pp rett V ed tak H en del se Dto ): ĠResponseEntity < Any > Ġ{ ĊĠĠĠĠĠĠĠ Ġinfo try gd Feed Service . op prett Ny Feed ( op prett Entry Dto ) ĊĠĠĠĠĠĠĠ Ġreturn ĠResponseEntity . ok (). build () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ PostMapping ("/ start - be handling ") ĊĠĠĠ Ġfun Ġlag Ny Start Be handling Mel ding (@ RequestBody Ġopp rett Entry Dto : ĠO pp rett Start Be handling H en del se Dto ): ĠResponseEntity < Any > Ġ{ ĊĠĠĠĠĠĠĠ Ġinfo try gd Feed Service . op prett Ny Feed ( op prett Entry Dto ) ĊĠĠĠĠĠĠĠ Ġreturn ĠResponseEntity . ok (). build () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ PostMapping ("/ peri ode ") ĊĠĠĠ Ġfun Ġlag Ny Per i ode Mel ding (@ RequestBody Ġopp rett Entry Dto : ĠO pp rett Per i ode H en del se Dto ): ĠResponseEntity < Any > Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( op prett Entry Dto . type Ġ!= ĠSt Ã¸ nad Type . OVER G ANG S ST Ã ĺ N AD ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġreturn ĠResponseEntity . bad Request (). body (" Har Ġik ke Ġs att Ġopp Ġmapping er Ġfor Ġand re Ġty per Ġen n Ġfor Ġover gang sst Ã¸ nad ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġinfo try gd Feed Service . op prett Ny Feed ( op prett Entry Dto ) ĊĠĠĠĠĠĠĠ Ġreturn ĠResponseEntity . ok (). build () ĊĠĠĠ Ġ} Ċ Ċ } Ċ