NetworkEndpoint

public protocol NetworkEndpoint

This defines the basic information of an endpoint

  • Base information about the server common for all endpoints

    Declaration

    Swift

    var server: ServerInfo { get }
  • The path to be appended to baseURL to form the full URL.

    Declaration

    Swift

    var path: String { get }
  • The HTTP method to be used in the request.

    Declaration

    Swift

    var httpMethod: String { get }
  • headers Default implementation

    The HTTP headers to be used in the request.

    Default Implementation

    Default value for HTTP headers is json

    Declaration

    Swift

    var headers: Headers? { get }
  • The parameters for the request

    Declaration

    Swift

    var parameters: Params? { get }
  • Type of encoding to use for params

    Declaration

    Swift

    var encoding: NetworkEncoding { get }
  • endPoint Extension method

    Utility computed property to make the complete URL

    Declaration

    Swift

    var endPoint: URL? { get }