EndpointProtocol

public protocol EndpointProtocol

Use this protocol to define repositories as enums.

  • Configure your endpoints by setting defining this function. See Examples/Communication/Repositories/CitiesRepository.swift for an example.

    Declaration

    Swift

    func configure() -> EndpointConfiguration

    Return Value

    An EndpointProtocol for each endpoint.