MappedRoute

@Serializable
data class MappedRoute(val uuid: String = UUID.randomUUID().toString(), val path: String, val mappedApi: MappedApi, var originalRoute: OriginalRoute, val method: MiddlewareHttpMethods, val preConfiguredQueries: Map<String, String> = mapOf(), val preConfiguredHeaders: Map<String, String> = originalRoute.headers, val preConfiguredBody: JsonObject? = originalRoute.body, val rulesAsString: String?)

Data class representing a mapped route.

Constructors

Link copied to clipboard
constructor(uuid: String = UUID.randomUUID().toString(), path: String, mappedApi: MappedApi, originalRoute: OriginalRoute, method: MiddlewareHttpMethods, preConfiguredQueries: Map<String, String> = mapOf(), preConfiguredHeaders: Map<String, String> = originalRoute.headers, preConfiguredBody: JsonObject? = originalRoute.body, rulesAsString: String?)

Properties

Link copied to clipboard

The mapped API.

Link copied to clipboard

The HTTP method of the mapped route.

Link copied to clipboard

The original route.

Link copied to clipboard

The path of the mapped route.

Link copied to clipboard
val preConfiguredBody: JsonObject?

The pre-configured body of the mapped route.

Link copied to clipboard

The pre-configured headers of the mapped route.

Link copied to clipboard

The pre-configured queries of the mapped route.

Link copied to clipboard

The mapping rules as a string.
Json example of the rules:
RulesExample.json
ConcatenatedRulesExample.json

Link copied to clipboard

The UUID of the mapped route.