Simple Swift Post Request using Task

you need to use the following in your controller
import UIKit
import ObjectMapper
import SwiftyJSON
import Alamofire

Also you could use Alamofire to return response string

or you could return response as json