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) -> Self

    Parameters

    host

    Given host

  • Sets the Scheme

    • Returns

      • Self

    Declaration

    Swift

    public func set(scheme: ACMBaseScheme) -> Self

    Parameters

    scheme

    Given scheme

  • Sets the Path

    • Returns

      • Self

    Declaration

    Swift

    public func set(path: String) -> Self

    Parameters

    path

    Given path with string

  • Sets the Path

    • Returns

      • Self

    Declaration

    Swift

    public func set(path: ACMPathModel) -> Self

    Parameters

    path

    Given path with model object

  • Sets the request method

    • Returns

      • Self

    Declaration

    Swift

    public func set(method: ACMBaseMethod) -> Self

    Parameters

    method

    Given method with model object

  • Add the request header

    • Returns

      • Self

    Declaration

    Swift

    public func add(header: ACMHeaderModel) -> Self

    Parameters

    header

    Given header with model object

  • Add request headers

    • Returns

      • Self

    Declaration

    Swift

    public func add(headers: [ACMHeaderModel]) -> Self

    Parameters

    headers

    Given header with model object list

  • Add the auth header

    • Returns

      • Self

    Declaration

    Swift

    public func add(authHeader: String) -> Self

    Parameters

    authHeader

    Given auth header with string

  • Add the query item

    • Returns

      • Self

    Declaration

    Swift

    public func add(queryItem: ACMQueryModel) -> Self

    Parameters

    queryItem

    Given query item with model object

  • Add query items

    • Returns

      • Self

    Declaration

    Swift

    public func add(queryItems: [ACMQueryModel]) -> Self

    Parameters

    queryItems

    Given query items with model object list

  • Add body payload

    • Returns

      • Self

    Declaration

    Swift

    public func add(param: ACMBodyModel) -> Self

    Parameters

    param

    Given param with model object

  • Add body payload list

    • Returns

      • Self

    Declaration

    Swift

    public func add(params: [ACMBodyModel]) -> Self

    Parameters

    params

    Given params with model object list

  • Sets the retry count

    • Returns

      • Self

    Declaration

    Swift

    public func retry(count: Int) -> Self

    Parameters

    count

    Given retry count with value

  • Adds the media

    • Returns

      • Self

    Declaration

    Swift

    public func add(media: ACMMultipartModel) -> Self

    Parameters

    media

    Given media with model object

  • Generic build

    Declaration

    Swift

    public func build() -> ACMBaseEndpoint