org.http4k.contract.ui.redocLite.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4k-contract Show documentation
Show all versions of http4k-contract Show documentation
http4k typesafe HTTP contracts and OpenApi support
package org.http4k.contract.ui
import org.http4k.core.then
import org.http4k.routing.ResourceLoader
import org.http4k.routing.static
fun redocLite(configFn: RedocConfig.() -> Unit = {}) = RedocConfig()
.also(configFn)
.toFilter("https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js")
.then(static(ResourceLoader.Classpath("org/http4k/contract/ui/redoc")))