ACMEndpoint
public final class ACMEndpoint
ACMEndpoint
Base generator for building the endpoint
-
Base init
Init method for creating new object
Declaration
Swift
public init() -
Sets the Host
Returns
- Self
Declaration
Swift
public func set(host: String) -> SelfParameters
hostGiven host
-
Sets the Scheme
Returns
- Self
Declaration
Swift
public func set(scheme: ACMBaseScheme) -> SelfParameters
schemeGiven scheme
-
Sets the Path
Returns
- Self
Declaration
Swift
public func set(path: String) -> SelfParameters
pathGiven path with string
-
Sets the Path
Returns
- Self
Declaration
Swift
public func set(path: ACMPathModel) -> SelfParameters
pathGiven path with model object
-
Sets the request method
Returns
- Self
Declaration
Swift
public func set(method: ACMBaseMethod) -> SelfParameters
methodGiven method with model object
-
Add the request header
Returns
- Self
Declaration
Swift
public func add(header: ACMHeaderModel) -> SelfParameters
headerGiven header with model object
-
Add request headers
Returns
- Self
Declaration
Swift
public func add(headers: [ACMHeaderModel]) -> SelfParameters
headersGiven header with model object list
-
Add the auth header
Returns
- Self
Declaration
Swift
public func add(authHeader: String) -> SelfParameters
authHeaderGiven auth header with string
-
Add the query item
Returns
- Self
Declaration
Swift
public func add(queryItem: ACMQueryModel) -> SelfParameters
queryItemGiven query item with model object
-
Add query items
Returns
- Self
Declaration
Swift
public func add(queryItems: [ACMQueryModel]) -> SelfParameters
queryItemsGiven query items with model object list
-
Add body payload
Returns
- Self
Declaration
Swift
public func add(param: ACMBodyModel) -> SelfParameters
paramGiven param with model object
-
Add body payload list
Returns
- Self
Declaration
Swift
public func add(params: [ACMBodyModel]) -> SelfParameters
paramsGiven params with model object list
-
Sets the retry count
Returns
- Self
Declaration
Swift
public func retry(count: Int) -> SelfParameters
countGiven retry count with value
-
Adds the media
Returns
- Self
Declaration
Swift
public func add(media: ACMMultipartModel) -> SelfParameters
mediaGiven media with model object
-
Generic build
Declaration
Swift
public func build() -> ACMBaseEndpoint
ACMEndpoint Class Reference