I'am developing a mobile web application Tasks (for iPhone) with a local database (using json files) so my app is still usable when the user is offline.
This is working perfectly, but I want to save the local data on a server. So I need to synchronize the local DB with a DB on a server (using REST(ful)way).
What I want to do is:
Collect all tasks and send to the server. At the moment I see two options to do this:
Send each task to the server: POST /tasks
I actually don't want to do this because I want to limit the number of requests to the server so option 2:
Collect all the tasks and send them to the server at once.
Is there any way to do this with (maybe with slimframework php) ?