Alamofire Swift 3.0 Extra argument in call

According to Alamofire documentation for version 4.0.0 URL request with HTTP method would be followings: Alamofire.request(“https://httpbin.org/get”) // method defaults to `.get` Alamofire.request(“https://httpbin.org/post”, method: .post) Alamofire.request(“https://httpbin.org/put”, method: .put) Alamofire.request(“https://httpbin.org/delete”, method: .delete) So your url request will be: Alamofire.request(patientIdUrl, method: .post, parameters: nil, encoding: JSONEncoding.default, headers: nil) and a sample request will be: Alamofire.request(url, method: .post, parameters: … Read more