Alamofire Swift 3.0 Extra argument in call
<p>I have migrated my project to Swift 3 (and updated Alamofire to latest Swift 3 version with <code>pod 'Alamofire', '~&gt; 4.0'</code> in the Podfile).</p>

<p>I now get an "Extra argument in call" error on every Alamofire.request.  Eg:</p>

<pre><code>let patientIdUrl = baseUrl + nextPatientIdUrl
Alamofire.request(.POST, patientIdUrl, parameters: nil, headers: nil, encoding: .JSON)
</code></pre>

<p>Can anybody tell me why ?</p>