Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create a public API using the Zend Framework?
    text
    copied!<p>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.</p> <p>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.</p> <p>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?</p> <p><strong>Update:</strong> I realized that I needed to learn what type of API I wanted to implement. <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer" rel="noreferrer">REST</a> and <a href="http://en.wikipedia.org/wiki/Remote_procedure_call" rel="noreferrer">RPC</a> are basically the two different kinds of APIs. <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer" rel="noreferrer">REST</a> is the most simple and common, so I have decided to implement a <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer" rel="noreferrer">RESTful API</a>.</p> <p><strong>Update:</strong> Here are some resources I've collected so far:</p> <ul> <li><a href="http://weierophinney.net/matthew/archives/228-Building-RESTful-Services-with-Zend-Framework.html#extended" rel="noreferrer">Building RESTful Services with Zend Framework - by Matthew Weier O'Phinney</a></li> <li><a href="http://techchorus.net/create-restful-applications-using-zend-framework" rel="noreferrer">Create RESTful Applications Using The Zend Framework</a></li> <li><a href="http://www.chrisdanielson.com/2009/09/02/creating-a-php-rest-api-using-the-zend-framework/" rel="noreferrer">Creating a PHP REST API Using the Zend Framework</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload