UrlBuilder

object UrlBuilder

Functions

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

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