UrlBuilder

object UrlBuilder

Functions

Link copied to clipboard
fun buildPath(template: String, parameters: Map<String, Any?>, ignorePathParameters: Boolean = false): String
Link copied to clipboard
fun buildUrl(baseUrl: String, pathTemplate: String = "/", pathParameters: Map<String, Any?> = mapOf(), queryParameters: Map<String, Any?> = mapOf(), ignorePathParameters: Boolean = false): String

Create a complete url based on the baseUrl and given parameters. Uses buildPath to create the path from the pathTemplate and pathParameters.