package Ġno . nav . f amil ie . integr as jon er . organ is as jon Ċ Ċ import Ġno . nav . f amil ie . kon tr ak ter . fel les . Ress urs Ċ import Ġno . nav . f amil ie . kon tr ak ter . fel les . Ress urs . Companion . success Ċ import Ġno . nav . f amil ie . kon tr ak ter . fel les . organ is as jon . Organ is as jon Ċ import Ġno . nav . security . token . support . core . api . Protected With Claims Ċ import Ġorg . springframework . context . annotation . Profile Ċ import Ġorg . springframework . http . MediaType Ċ import Ġorg . springframework . web . bind . annotation . GetMapping Ċ import Ġorg . springframework . web . bind . annotation . PathVariable Ċ import Ġorg . springframework . web . bind . annotation . RequestMapping Ċ import Ġorg . springframework . web . bind . annotation . RestController Ċ Ċ @ RestController Ċ @ Protected With Claims ( issuer Ġ= Ġ" azure ad ") Ċ @ RequestMapping ("/ api / organ is as jon ") Ċ @ Profile (" e 2 e ") Ċ class ĠOrgan is as jon Controller E 2 E Ġ{ ĊĊĠĠĠ Ġ@ GetMapping ( path Ġ= Ġ[" /{ org nr } "], Ġproduces Ġ= Ġ[ MediaType . APPLICATION _ JSON _ VALUE ]) ĊĠĠĠ Ġfun Ġh ent Organ is as jon (@ PathVariable Ġorg nr : ĠString ): ĠR ess urs < Organ is as jon > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġsuccess ( data Ġ= ĠOrgan is as jon ( organ is as j ons nummer Ġ= Ġorg nr , Ġnav n Ġ= Ġ" Mock a Ġorgan is as jon ")) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ GetMapping ( path Ġ= Ġ[" /{ org nr }/ valid er "], Ġproduces Ġ= Ġ[ MediaType . APPLICATION _ JSON _ VALUE ]) ĊĠĠĠ Ġfun Ġval ider Organ is as jon (@ PathVariable Ġorg nr : ĠString ): ĠR ess urs < Boolean > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġsuccess ( data Ġ= Ġtrue ) ĊĠĠĠ Ġ} Ċ Ċ } Ċ