title: How to send POST request with both parameter and body for JSON data in Swift 3 using Alamofire 4?
body: <p>Postman api url added below.
  <a href="https://i.stack.imgur.com/1NLCe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1NLCe.png" alt="enter image description here"></a></p>
  
  <p>Present code :</p>
  
  <pre><code>let baseUrl = "abc.com/search/"
  let param  =  [
          "page":"1",
          "size":"5",
          "sortBy":"profile_locality"
      ]
  
      let headers = [
          "Content-Type": "application/json"
      ]
  
  
      Alamofire.SessionManager.default.request("\(baseUrl)field", method: .post,parameters: param, encoding: JSONEncoding.default, headers: headers).responseJSON { response in
          print(response.request ?? "no request")  // original URL request
          if(response.response?.statusCode != nil){
              print("done")
              if self.checkResponse(response.response!.statusCode){
                  let json = JSON(data: response.data!)
                  //print("at_LeadStop json \(json)")
                  return completionHandler(json, false)
  
              } else {
                  return completionHandler(JSON.null, true)
              }
          } else {
              print("gone")
              return completionHandler(JSON.null, true)
          }}
  </code></pre>
  
  <p>I don't know how to add body request through this code. Please help  me to slove this problem.</p>