title: WebService API Method in Swift 3 and Swift 4?
body: <p>I am new to <code>Swift</code> iOS and i want to create a separate method in separate class(like <code>NSObject</code>) of web services so that i can use it in any ViewController and parse any type of  <code>JSON</code> response using <code>NSURLSession</code> and <code>Alamofire</code> . Could someone help me.</p>