开发者

REST based service on iPhone

开发者 https://www.devze.com 2023-01-26 14:19 出处:网络
I have never before created a REST based service. I am about to create a simple apps for the iPhone which needs to st开发者_如何学Goore data and I want to consume the data by using a REST API. Do you

I have never before created a REST based service. I am about to create a simple apps for the iPhone which needs to st开发者_如何学Goore 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?


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消