-2

enter image description here

Give me your best solution in swift 4

1 Answers1

0

There must be problem with your parameters, so try like below code:

Alamofire.request(yourUrl, method: .post, parameters: param as? [String: Any], encoding: JSONEncoding.default, headers: [:])
            .responseJSON { response in
Jigar Tarsariya
  • 3,189
  • 3
  • 14
  • 38