I am developing an iPhone APP and must also implement a web service. First of all, I am not a developer and have never done something big in PHP, Objective-C, xCode. My PHP knowledge is not good either. But let it begin with my environment.
iPhone APP (xCode 4.2, iOS5), PHP web service, MySQL DB
I studied WEB and most people prefer REST over SOAP. I think I also see the benefits of REST (using simple HTTP verbs (get, post, delete, etc.), but this is not the point here ...
I think I understand the main purpose of the REST architecture and am trying to make a small concept with a URI and display of verbs. Here is just a simple display example:
/location/{location_id}/product /location/{location_id}/product/{product_id}
Both are GET operations that should receive me a broadcast of one product or all products of a location.
What would a simple PHP REST web server look like with these features?
The other part is to implement user authentication with the iPhone. Somehow I need to save a user session, right now I do not know how to do it. The goal is that, as soon as the user is logged in, he can view the product.
Now I also explored the Web, but could not find an easy walkthrough. Do you know good tutorials to help me achieve my goal? :)
Many people prefer to use the PHP Framework, such as ZEND. It seems very interesting, but it looks like a big package with a lot of modules. Does anyone know which modules are needed for my web service to work?