URL

public extension URL
  • Creates a valid URL based on configuration’s apiBaseURL and endpoint path

    Declaration

    Swift

    static func boxAPIEndpoint(_ endpoint: String, configuration: BoxSDKConfiguration) -> URL

    Parameters

    endpoint

    The relative path that will be appended to apiBaseURL

    configuration

    The SDK configuration that provides apiBaseURL URL

    Return Value

    The URL of the API endpoint.

  • Creates a valid URL based on configuration’s uploadApiBaseURL and endpoint path

    Declaration

    Swift

    static func boxUploadEndpoint(_ endpoint: String, configuration: BoxSDKConfiguration) -> URL

    Parameters

    endpoint

    The relative path that will be appended to uploadApiBaseURL

    configuration

    The SDK configuration that provides uploadApiBaseURL URL

    Return Value

    The URL of the upload API endpoint.