PCSDKModule Documentation

Structure Endpoint

public struct Endpoint  

Holds info about enpoint

Nested Types

Endpoint.HTTPMethod

The HTTP method

Initializers

init(_:​_:​_:​query​Params:​)

public init(
        _ method: HTTPMethod,
        _ baseURL: URL,
        _ components: String...,
        queryParams: [String: Any] = [:]
    )  

Creates the new Endpoint instance

Parameters

method HTTPMethod

The request method

base​URL URL

The API's base url

components String

An additional url components

Properties

method

public let method: HTTPMethod

The HTTP method

url

public let url: URL

The full url