Skip to content

Instantly share code, notes, and snippets.

@aaronlab
aaronlab / ApiService.swift
Created December 31, 2021 09:55
Api Service
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,