package Ġuk . gov . just ice . digital . h mp ps . pr isoner contact registry . config Ċ Ċ import Ġio . swagger . v 3 . o as . models . Open API Ċ import Ġio . swagger . v 3 . o as . models . info . Contact Ċ import Ġio . swagger . v 3 . o as . models . info . Info Ċ import Ġio . swagger . v 3 . o as . models . servers . Server Ċ import Ġorg . springframework . beans . factory . annotation . Value Ċ import Ġorg . springframework . boot . info . Build Properties Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ Ċ @ Configuration Ċ class ĠOpen Api Configuration ( build Properties : ĠBuild Properties ) Ġ{ ĊĊĠ Ġprivate Ġval Ġbuild Name : ĠString Ġ= Ġbuild Properties . name ĊĠ Ġprivate Ġval Ġbuild Version : ĠString Ġ= Ġbuild Properties . version ĊĊĠ Ġ@ Value ("\ ${ info . app . description }") Ġprivate Ġval Ġdescription : ĠString Ġ= Ġ"" ĊĠ Ġ@ Value ("\ ${ info . app . contact . name }") Ġprivate Ġval Ġcontact Name : ĠString Ġ= Ġ"" ĊĠ Ġ@ Value ("\ ${ info . app . contact . email }") Ġprivate Ġval Ġcontact Email : ĠString Ġ= Ġ"" ĊĊĠ Ġ@ Bean ĊĠ Ġfun Ġcustom Open API (): ĠOpenAPI Ġ= ĠOpenAPI () ĊĠĠĠ Ġ. servers ( ĊĠĠĠĠĠ ĠlistOf ( ĊĠĠĠĠĠĠĠ ĠServer (). url (" https :// pr isoner - contact - registry . h mp ps . service . just ice . gov . uk "). description (" Prod "), ĊĠĠĠĠĠĠĠ ĠServer (). url (" https :// pr isoner - contact - registry - pre prod . h mp ps . service . just ice . gov . uk "). description (" Pre Prod "), ĊĠĠĠĠĠĠĠ ĠServer (). url (" https :// pr isoner - contact - registry - dev . h mp ps . service . just ice . gov . uk "). description (" Development "), ĊĠĠĠĠĠĠĠ ĠServer (). url (" http :// localhost : 8 0 8 0 "). description (" Local "), ĊĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ) ĊĠĠĠ Ġ. info ( ĊĠĠĠĠĠ ĠInfo (). title ( build Name ) ĊĠĠĠĠĠĠĠ Ġ. version ( build Version ) ĊĠĠĠĠĠĠĠ Ġ. description ( description ) ĊĠĠĠĠĠĠĠ Ġ. contact ( Contact (). name ( contact Name ). email ( contact Email )) ĊĠĠĠ Ġ) Ċ } Ċ