Skip to content

Instantly share code, notes, and snippets.

@malcommac
Created March 15, 2022 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malcommac/7a34e16bd23f18ff5776f13decf249b7 to your computer and use it in GitHub Desktop.
Save malcommac/7a34e16bd23f18ff5776f13decf249b7 to your computer and use it in GitHub Desktop.
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