Endpoint

class Endpoint : ContentType

represents an endpoint content type

  • the route which identifies this endpoint

    Declaration

    Swift

    var route: String
  • Undocumented

    Declaration

    Swift

    required init(from decoder: Decoder) throws
  • Converts the route to the endpoint name used by facade

    Declaration

    Swift

    static func endpointName(from route: String) -> String

    Parameters

    route

    top level route which identifies the endpoint

    Return Value

    endpoint name used by facade

  • Converts the endpoint name used by facade to its route

    Declaration

    Swift

    static func routeName(from name: String) -> String

    Parameters

    name

    endpoint name used by facade

    Return Value

    top level route which identifies the endpoint