swift JSON login REST with post and get response example
It's my first experience with REST in iOS development with swift. I couldn't find any working or straight (simple) example for doing what i need here. I have a login backend ( https://myaddress.com/rest/login ), where I need to pass 2 params: login and password. When I pass good values (user exists in database) I get 2 variables as a result: token (string) and firstLogin (bool). So when I get those values I know that login is successful and I can log in into my app. So I am begging you for an example (just a simple function) of how to achieve that. If I get working code example I will know how