api

http4k / org.http4k.chaos / RemoteChaosApi

RemoteChaosApi

object RemoteChaosApi

A set of endpoints to an application which will control the setting and toggling chaos behaviour. The added endpoints are: GET //status <- check the on off/status of the injected chaos POST //activate <- turn on the chaos. optionally POST a JSON body to set a list of new stages to use. POST //deactivate <- turn off the chaos POST //toggle <- toggle the chaos

By default, controls are mounted at the root path /chaos

Functions

Name Summary
invoke operator fun invoke(engine: ChaosEngine, controlsPath: String = "/chaos", chaosSecurity: Security = NoSecurity, openApiPath: String = "", corsPolicy: CorsPolicy = UnsafeGlobalPermissive, clock: Clock = Clock.systemUTC(), apiName: String = "http4k"): RoutingHttpHandler