Created
March 15, 2022 19:26
-
-
Save malcommac/7a34e16bd23f18ff5776f13decf249b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public protocol APIResourceConvertible { | |
associatedtype Result: Decodable // the output object of the service | |
func request() -> HTTPRequest // function which generate a request | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment