News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

IBM developerWorks:
Creating a REST API with Agavi
May 05, 2010 @ 08:39:13

On the IBM developerWorks website today there's a new tutorial showing how to create a REST web service with the help of the Agavi framework.

These days, every Web application worth its salt has a REST API. Flickr has one; so do Google, Bit.ly, and NetFlix, as well as many other popular applications. As an architectural pattern, REST is popular. [...] This article will walk you through the process of building a simple REST API with Agavi. If you already have an Agavi-based application, this article will explain how to leverage existing framework conventions and expose your application innards to third-party developers. If you're creating a new REST-based application, this article will demonstrate how using Agavi can make the process simpler and more efficient.

He starts with an introduction to the REST protocol for making web service requests, covering the basics of verbs and how you can map URLs. From there he steps you through the creation of a sample application with customized routing and modules to handle GET and POST requests for the example book information his service is based on. He also adds in a method that will let you swap out the XML output for JSON.

0 comments voice your opinion now!
rest tutorial agavi framework


blog comments powered by Disqus

Similar Posts

Symfony Blog: Announcing Symfony BugHuntDay

Brian Swan's Blog: How to Page Data with the SQL Server Drivers for PHP

Ivo Jansch's Blog: Validating OCL constraints in PHP objects

Inside DealTaker Blog: Kohana PHP 2.3.x Tutorial Part 1

Ruben Vermeersch's Blog: Integrating Zend Framework and Doctrine


Community Events





Don't see your event here?
Let us know!


series release opinion artisanfiles introduction podcast list conference interview security version framework community language composer voicesoftheelephpant tool laravel library symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework