Created
December 31, 2021 09:55
-
-
Save aaronlab/be66c02564e4dea034deca3f7d453e6c to your computer and use it in GitHub Desktop.
Api Service
This file contains hidden or 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
import Alamofire | |
import Foundation | |
import RxSwift | |
/// APIService | |
protocol APIService { | |
func request<T: BaseAPIResponse>(with request: URLRequest) -> Observable<APIResult<T>> | |
func upload<T: BaseAPIResponse>(with url: URL, | |
method: Alamofire.HTTPMethod, | |
headers: HTTPHeaders?, | |
parameters: [MultipartData]) -> Observable<APIResult<T>> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment