Code for syncing iPhone with REST servers

Is there any open source code to sync iPhone with server (preferably REST)?

Nothing found in github and google code.

Yours faithfully...

+4
source share
5 answers

I suggest using the excellent ASIHTTPRequest source from All-Seeing Interactive: http://allseeing-i.com/ASIHTTPRequest . I do this, and so are a few released iPhone apps, so you can be sure that the code is pretty strong.

This is the CFNetwork API wrapper that simplifies some of the more tedious aspects of interacting with web servers. It is written in Objective-C and works in both Mac OS X and iPhone applications.

It is suitable for making basic HTTP requests and interacting with REST-based services (GET / POST / PUT / DELETE). The ASIFormDataRequest subclass simplifies sending data and POST files using multipart / form-data.

+4
source

I worked with a project called ObjectiveResource (Github project here: http://github.com/yfactorial/objectiveresource/tree/master ), which focuses mainly on the level of communication between your iphone models and the REST-based web service. It is intended for applications with rails, but should work with any REST api. Part of this project is a more synchronization-oriented solution, which is still in its early development, but which has recently been discussed quite a bit in the google target group of resources at http://groups.google.com/group/objectiveresource?hl=en .

I highly recommend an objective resource, I use it along with sqlitepersistenobjects to handle synchronization in my iphone project.

+5
source

I have successfully used Adrian Kosmaczewski iPhone Rest Wrapper . See also this SO question .

+3
source

I would recommend checking out RestKit: http://restkit.org/ It provides an excellent API for accessing RESTful web services and representing remote resources as local objects, including storing them in Core Data.

+3
source

All Articles