MappedRoute
@Serializable
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 HTTP method of the mapped route.
Link copied to clipboard
The original route.
Link copied to clipboard
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