How to send a post request with Alamofire with parameters as json having list of integers i.e, my server expects a dictionary whose value for the key is a list of integers.
I want the parameters as {"abc":[1,2,3]}. How to send this along post request of Alamofire in swift?
Have you tried the following?
var parameter = ["abc": [1,2,3]]
Alamofire.request(.POST, "http://www.yoursite.com/api" , parameters:parameter)
I would also look at the documentation over at Alamofire github documentation which is really helpful.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With