DDRouter/API/EndpointType.swift (9 lines of code) (raw):

import Foundation public protocol EndpointType { // base url to use - use this with NetworkEnvironment protocol // should not end in '/' var baseURL: URL { get } // path to endpoint - should start with '/' var path: String { get } // http method to use for request var method: HTTPMethod { get } // task (e.g. whether or not there are encodable parameters) // TODO: this is silly imo, can be streamlined var task: HTTPTask { get } // headers var headers: HTTPHeaders? { get } // query parameters // TODO: why is this one not typealiased the same as headers? var query: [String: String] { get } }