How to add Alamofire URL parameters
The problem is that you’re using URLEncoding.default. Alamofire interprets URLEncoding.default differently depending on the HTTP method you’re using. For GET, HEAD, and DELETE requests, URLEncoding.default encodes the parameters as a query string and adds it to the URL, but for any other method (such as POST) the parameters get encoded as a query string and … Read more