Structure
Endpoint
public struct Endpoint
Holds info about enpoint
Relationships
Nested Types
Endpoint.HTTPMethod
The HTTP method
Initializers
init(_:_:_:queryParams:)
public init(
_ method: HTTPMethod,
_ baseURL: URL,
_ components: String...,
queryParams: [String: Any] = [:]
)
Creates the new Endpoint
instance
Parameters
Name | Type | Description |
---|---|---|
method | HTTPMethod |
The request method |
baseURL | URL |
The API's base url |
components | String |
An additional url components |