I have an idea for a web application that would be great if it also had a public API for people to use and interact with. I want people to be able to create their own mobile and desktop applications that interact with the API. Specifically, I want to create an iPhone application that will interact with the API.
I will be building the application with the Zend Framework. I have never created an API, so what do I need to know about creating an API using the Zend Framework? Any tutorials, or advice would be appreciated.
Specifically, I am wondering...If I decide to use XML or JSON as the format, how do I return the data in that format for the client application to use?
Update: I realized that I needed to learn what type of API I wanted to implement. REST and RPC are basically the two different kinds of APIs. REST is the most simple and common, so I have decided to implement a RESTful API.
Update: Here are some resources I've collected so far: