News Feed
Sections




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

Matthew Weier O'Phinney:
Apigility Using RPC with HAL
March 28, 2014 @ 10:48:37

Matthew Weier O'Phinney has a new post sharing some of the details about using RPC and HAL in the Apigility API tool from Zend. HAL stands for "Hypermedia Access Language" and basically provides a way to define objects in an API and what they relate to.

A few days ago, we released our first beta of Apigility. We've started our documentation effort now, and one question has arisen a few times that I want to address: How can you use Hypermedia Application Language (HAL) in RPC services? Hypermedia Application Language is an IETF proposal for how to represent resources and their relations within APIs. Technically, it provides two mediatypes, application/hal+json and application/hal+xml; however, Apigility only provides the JSON variant.

He introduces some of the basics of HAL and includes an example of JSON output showing metadata about the current object such as a full link to the resource. He also includes an example of the "embedded" data, additional related data, other objects, with their own structure and links. He also briefly mentions what RPC is and how it works before getting into how to set up the endpoints in your Apigility API with the help of "ContentNegotiation" functionality.

0 comments voice your opinion now!
apigility hal rpc tutorial introduction

Link: http://mwop.net/blog/2014-03-26-apigility-rpc-with-hal.html

blog comments powered by Disqus

Similar Posts

Twilio Blog: How to Build an MMS Ticketing System Using PHP, Laravel and Twilio

IBM developerWorks: Use an XML database in PHP and Java applications

BillS' IIS Blog: How to install PHP on IIS7 (RC1)

Dzone.com: A Free Amazon EC2 Cloud Server Based LAMP

SitePoint PHP Blog: Continuous Integration with PHP-CI


Community Events





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


api install zendserver opinion release series framework introduction list tips laravel package library update language community podcast interview symfony deployment

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