resolveUrl

open fun resolveUrl(request: RestRequest): URI

Resolves the given RestRequest to its URL.

Return

The URI associated with the Rest request.

Parameters

request

The Rest request to resolve.


open fun resolveUrl(path: String): URI

Resolves the given path against the community URL or the instance URL, depending on whether the user is a community user or not.

Return

Resolved URL.

Parameters

path

Path.


open fun resolveUrl(path: String, endpoint: RestRequest.RestEndpoint): URI

Resolves the given path against the community URL, login URL, or instance URL. If the user is a community user, the community URL will be used. Otherwise, the URL will be built from the RestRequest.RestEndpoint parameter.

Return

Resolved URL.

Parameters

path

Path

endpoint

The Rest endpoint of the URL.