We make iOS apps where we often get data in a list from an API, then we select the data and go to the next ViewController.Often it happens that the server is down or some API is not ready.What is a good development practice where we can continue our regular work flow without depending on the webservice and then when its ready without making much changes continue using the web-service and till then use some fixed data.
How to continue development without the webservice?
ios
Since you know how the API will be accessed, and what types of values will be returned, you could create your own basic version of the API that just does something basic with your input and returns something like what would be expected. Then when the API is ready you can just swap it in.Afraid I can't provide any detailed instructions for how this would be achieved for iOS, as I am not familiar with iOS development. However, I have worked on a project where one set of developers was working on the front end in one country and a separate company in a different country was working on the web service. The UI developers were accessing a basic javascript library that just returned test data, and the back end developers were passing in values to the service with a very basic test harness. There were a small number of issues to be ironed out when the two were put together but altogether it worked quite well. 