• Embedding SwaggerUI into http4s projects

    I’d like to share an approach for integrating SwaggerUI into Scala projects, using http4s as example. With webjars available you don’t need to copy its complete code into your project, you’ll need just a small piece of it along with 2 dependencies to your build.sbt file - one with SwaggerUI code, and another - webjar ulitity library: libraryDependencies ++= { "org.webjars" % "webjars-locator" % "0.34", "org.webjars" % "swagger-ui" % "3.17.3" } Now we need to customize index.