Reputation: 14418
I have never before created a REST based service. I am about to create a simple apps for the iPhone which needs to store data and I want to consume the data by using a REST API. Do you think this is worthed or should I as well do a query to the DB? What sort of DB/language do usually iPhone developers use for their application?
Upvotes: 1
Views: 875
Reputation: 1199
the iPhone includes SQLite which can store your data locally. If you need to query a system on a server, then you need some method of exposing your data and performing operations against it. Using a RESTful api with something like JSON is a relatively common method for this.
For the database, it depends on your needs, if you need a true relational database then something like MySQL, PostgreSQL, SQL Server, Oracle, etc. will work. You can also look at Google's BigTable or Amazon's SimpleDB to store data for non-relational data stores, and write your RESTful services on those.
This article has an example of integrating the iPhone with Flikr using their REST services and JSON.
http://iosdevelopertips.com/networking/iphone-json-flickr-tutorial-part-1.html
Upvotes: 2
Reputation: 340
I think RESTKit provides seamless integration with SQLite in addition to being a nice REST client. There's also RESTframework if you're looking for something simple to use.
Upvotes: 1