I am working in iOS swift project. I have handled the all the API in Networking class which is singleton and form the param like below for each request:
For the first API:
let parameters: Parameters = [
“user_id”: "1o75d"
]
Fir the second API:
let parameters: Parameters = [
“user_id”: “1o75d”,
“domain_path”: “”,
“ios_device_os”:””,
“ios_device_type”: “”
]
I have to call more than 10 web service when the user enters the userid in the Home Screen.
Instead of form the request for 10 web services like above for each service, is any other way to form the dynamic request using design pattern?
Aucun commentaire:
Enregistrer un commentaire