morozov
08/19/2019, 3:14 PMLuca Nicoletti
08/19/2019, 3:21 PMAPI_AUTHORIZATIONS
equals to api/mandarine/v1/authorizations
?Luca Nicoletti
08/19/2019, 3:21 PMLuca Nicoletti
08/19/2019, 3:21 PMmorozov
08/19/2019, 3:24 PMapi/mandarine/v1/authorizations
morozov
08/19/2019, 3:25 PMmorozov
08/19/2019, 3:26 PMmyroute
clippedmorozov
08/19/2019, 3:36 PMLuca Nicoletti
08/19/2019, 3:37 PMLuca Nicoletti
08/19/2019, 3:37 PM<http://google.com|google.com>
, scheme = https
and appending the pathLuca Nicoletti
08/19/2019, 3:38 PM/myroute
does not belong to authority and you’re not setting it anywheremorozov
08/19/2019, 4:13 PMinternal fun createRequestUrl(baseUrl: String, vararg routePaths: String): String {
val baseUri = Uri.parse(baseUrl)
Log.d("some", "baseUri: $baseUri")
val builder = Uri.Builder()
.scheme(baseUri.scheme ?: "https")
.encodedAuthority(baseUri.authority ?: "")
routePaths.forEach { builder.appendEncodedPath(it) }
return builder.build().toString()
}
now checkingLuca Nicoletti
08/19/2019, 4:17 PM/myroute
to your API_AUTHORIZATIONS
Luca Nicoletti
08/19/2019, 4:18 PMmorozov
08/19/2019, 6:04 PM