swift rest api 썸네일형 리스트형 Swift - Alamofire - REST API pod 'Alamofire', '~> 5.5' pod 'SwiftyJSON', '~> 4.0' GET private func requestGet(url:String, completion:@escaping (APIResult)->Void) { self.request = AF.request(url, method:.get, encoding: JSONEncoding.default) self.request?.validate(statusCode: 200..Void) { print("\n\n") print("REQUEST POST") print(url) self.request = AF.request(url, method:.post, parameters: params, encoding: JSONEncoding.defa.. 더보기 이전 1 다음