I'm working on an app that uses cookies after login. I've implemented logging in part. Now I'll use apis to get data. I've two questions.
First, I understand parameters section in post request, that's your data. But why do I need one in get request and what should I write in them? Can you give any example? I've read about it but I really couldn't get it.
Second, after login, cookie should be added to GET requests as far as I'm concerned. Yet, I couldn't find out where to add cookie in Alamofire syntax and failed to find any example. Where should I add cookie?
Alamofire.request(url, method: .get, parameters: parameters, encoding: JSONEncoding.default)