News Feed
Sections




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

Lorenzo Ferrara:
Testing Apigility Code-Connected REST APIs
October 14, 2013 @ 09:30:18

Lorenzo Ferrara has a recent post to his site involving the recently released Apigility from Zend and how to to create a basic API endpoint (with code) for a REST API (complete with screenshots).

The recently announced Apigility arrives just when I'm experimenting ways to create and maintain my own set of APIs. So I could not resist to giving this new Zend tool a try. [...] The test I'm about to describe involves the creation of a "Fortune Cookie" REST API. I've tried to keep the code as simple as I could. It lacks of basic stuff but it's meant to be that way.

He talks about creating the first API and what kinds of code files were created as a result - a configuration and three for the API itself: a collection, an entity and a resource files. He shows the changes he made to the resource to return static data from a set of fortunes and the entity class to use it. His screenshots show the results of a few REST requests, one for all of the "cookies" and a few others for specific cookie instances.

0 comments voice your opinion now!
apigility rest api example tutorial

Link: http://www.lorenzoferrara.net/blog/testing-apigility-code-connected-rest-apis-9905375.html

blog comments powered by Disqus

Similar Posts

PHPMaster.com: Bulletproofing Database Interactions with PHPUnit's Database Extension

Nefarious Designs: Object-Oriented PHP Part 4: PHP5's Improved Features

WebCheatSheet.com: PHP: Dynamic Image Generation

C7Y: Reflections on Designing an IRC Bot in PHP, Part 2

Ibuildings techPortal: DPC Radio: Keynote - First Class APIs


Community Events





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


release tips threedevsandamaybe laravel introduction voicesoftheelephpant bugfix deployment conference podcast api community framework code zendserver list interview symfony language series

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