<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>echolibre blog &#187; frapi</title>
	<atom:link href="http://blog.echolibre.com/category/frapi/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.echolibre.com</link>
	<description></description>
	<pubDate>Wed, 18 Aug 2010 09:39:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Want your own Cloud API?</title>
		<link>http://blog.echolibre.com/2010/08/want-your-own-cloud-api/</link>
		<comments>http://blog.echolibre.com/2010/08/want-your-own-cloud-api/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 15:41:12 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[API]]></category>

		<category><![CDATA[Cloud Computing]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[frapi]]></category>

		<category><![CDATA[amazon]]></category>

		<category><![CDATA[APC]]></category>

		<category><![CDATA[ec2]]></category>

		<category><![CDATA[memcached]]></category>

		<category><![CDATA[nginx]]></category>

		<category><![CDATA[php-fpm]]></category>

		<category><![CDATA[php532]]></category>

		<guid isPermaLink="false">http://blog.echolibre.com/?p=969</guid>
		<description><![CDATA[Ever considered developing a RESTful API? Ever wondered what is FRAPI and how it works? Well apart from reading the frameworks&#8217;s website, there was no real way to assess FRAPI as a RESTful API Framework — Not until recently.
In order to ease adoption and make it more accessible for people to evaluate FRAPI, we&#8217;ve put [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignnone size-thumbnail wp-image-979" style="margin: 15px;" title="logo_aws" src="http://blog.echolibre.com/wp-content/uploads/2010/08/logo_aws-150x60.gif" alt="logo_aws" width="150" height="60" align="left" />Ever considered developing a RESTful API? Ever wondered what is FRAPI and how it works? Well apart from reading <a title="FRAPI RESTful API Framework" href="http://getfrapi.com">the frameworks&#8217;s website</a>, there was no real way to assess FRAPI as a RESTful API Framework — Not until recently.</p>
<p style="text-align: justify;">In order to ease adoption and make it more accessible for people to evaluate FRAPI, we&#8217;ve put an <a title="Custom Amazon AMIs" href="http://alestic.com">Amazon AMI</a> together. This AMI comes pre-installed with <a title="Linux Lucid 10.04 LTS" href="http://releases.ubuntu.com/lucid/">Linux Lucid Lynx (Ubuntu 10.04 LTS)</a>, <a title="NGINX Webserver" href="http://nginx.org">NGINX</a> as the webserver, <a title="Advanced Caching server Memcached" href="http://memcached.org/">Memcached</a> — (And no, <a title="Memcached Funny site idea" href="http://twitter.com/preinheimer/statuses/20653198709">port 11211 isn&#8217;t opened</a> to the public), <a title="PHP FPM" href="http://php-fpm.org/">PHP5-FPM</a>, <a title="PHP APC Caching" href="http://php.net/apc">APC</a> and obviously FRAPI.</p>
<p style="text-align: justify;">If you&#8217;d like to give this public AMI a spin, just go to Amazon&#8217;s instance management section, click on &#8220;Launch Instance, go to community AMIs, and search for : &#8220;<a title="AMI Image" href="http://skitch.com/davidcoallier/dtfrx">ami-8c28c3e5</a>&#8221; . Once you found it, click on &#8220;Select&#8221; (And make sure to select Port HTTP (80) when asked about which ports to open).<br />
<span id="more-969"></span></p>
<h2>It&#8217;s running, now what?</h2>
<p style="text-align: justify;">You can go directly to the AMI&#8217;s host name in a browser and you will get FRAPI&#8217;s default invalid action error, or you can follow these steps to customise it a bit more.</p>
<p style="text-align: justify;">Now that you see your new shiny FRAPI-AMI instance running in your management console, you have a few options:</p>
<p style="text-align: justify;"><strong>First option is</strong>: Find the &#8220;Public DNS&#8221; and the &#8220;Public IP Address&#8221; of the instance you just launched and point your domain-name&#8217;s DNS to the IP you found — Your domains could be: api.mydomain.com and admin.api.mydomain.com</p>
<p style="text-align: justify;"><strong>Second Option is</strong>: If you do not currently hold a domain name for your API, edit your <em>/etc/hosts</em> file (Or the equivalent in your OS) to have an entry that points to the IP of your instance</p>
<blockquote>
<p style="text-align: justify; padding-left: 30px;">10.0.0.1 api.mydomain.com admin.api.mydomain.com.</p>
</blockquote>
<p style="text-align: justify;">Once you are done with either Option 1 or Option 2, you&#8217;ll need to connect to your instance over SSH (<em>ssh ubuntu@hostname-of-the-instance -i your-amazon-cert.pem</em>). Upon connection, you&#8217;ll be greeted with a welcome screen giving you some information about FRAPI and the server&#8217;s software : <script src="http://gist.github.com/515503.js"></script></p>
<p style="text-align: justify;">Once you are connected, make sure to &#8220;<em>sudo su</em>&#8221; and then edit the files that are in <em>/home/ubuntu/sites/</em>. The only thing you have to modify in those files are the &#8220;<strong>server_name</strong>&#8221; details. Put either your domain name or your made up domain name that is setup in your <em>/etc/hosts</em> file. The end result should be an admin file with something that contains something along the lines of <script src="http://gist.github.com/515519.js"></script></p>
<p style="text-align: justify;">and an api configuration file that contains</p>
<p style="text-align: justify;"><script src="http://gist.github.com/515520.js"></script></p>
<p style="text-align: justify;">Don&#8217;t give up, you are nearly there, now you have to run : &#8220;<em>/etc/init.d/nginx restart &amp;&amp; /etc/init.d/php5-fpm restart</em>&#8221; and you are done.</p>
<p style="text-align: justify;">If you go to the api.mydomain.com in your browser you should now see FRAPI&#8217;s default invalid action XML error. If you go to admin.api.mydomain.com you should be able to login with the username &#8220;admin&#8221; and password &#8220;password&#8221; — Hint: You should go to the &#8220;<strong>configurations -&gt; users</strong>&#8221; section and modify that password.</p>
<h2>I want to code something!</h2>
<p style="text-align: justify;">SSH into your instance, and go to<em> /home/ubuntu/development/custom/Actions</em>, you will see all your API Controllers there and you can follow the steps here <a title="Creating Actions in FRAPI" href="http://wiki.github.com/frapi/frapi/creating-actions">http://wiki.github.com/frapi/frapi/creating-actions</a> (In our case, the generated files go into <em>/home/ubuntu/development/custom/Actions</em>)</p>
<p style="text-align: justify;">To get accustomed you can start playing with <a title="Testing1 Frapi ACTION" href="http://github.com/frapi/frapi/blob/master/src/frapi/custom/Action/Testing1.php">Testing1.php</a> and <a title="Testing2 Frapi ACTION" href="http://github.com/frapi/frapi/blob/master/src/frapi/custom/Action/Testing2.php">Testing2.php</a></p>
<p style="text-align: justify;">Don&#8217;t hesitate to jump on <a title="FRAPI IRC Channel" href="irc://frapi@irc.freenode.org">IRC</a> or on the <a title="FRAPI mailing list." href="http://groups.google.com/group/frapi-general">mailing list</a> and ask questions!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echolibre.com/2010/08/want-your-own-cloud-api/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHPTek 2010, FRAPI release party!</title>
		<link>http://blog.echolibre.com/2010/05/phptek-2010-frapi-release-party/</link>
		<comments>http://blog.echolibre.com/2010/05/phptek-2010-frapi-release-party/#comments</comments>
		<pubDate>Tue, 25 May 2010 12:13:04 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[frapi]]></category>

		<category><![CDATA[announcement]]></category>

		<category><![CDATA[fun]]></category>

		<category><![CDATA[party]]></category>

		<category><![CDATA[phptek]]></category>

		<category><![CDATA[release]]></category>

		<category><![CDATA[tekx]]></category>

		<guid isPermaLink="false">http://blog.echolibre.com/?p=954</guid>
		<description><![CDATA[ Last week Helgi and I had the humongous chance and honour to fly to the &#8220;windy city&#8221; to PHP Tek 2010. For a change however, the purpose of this trip was not to give a talk at #tekx but to announce the open source release of a little something we&#8217;ve been cooking up for [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignleft size-full wp-image-957" style="margin: 15px;" title="tekx" src="http://blog.echolibre.com/wp-content/uploads/2010/05/tekx.png" alt="tekx" width="90" height="90" align="left" /> Last week <a href="http://twitter.com/h">Helgi</a> and <a href="http://twitter.com/davidcoallier">I</a> had the humongous chance and honour to fly to the &#8220;windy city&#8221; to <a title="PHP Tek 2010 Conference" href="http://tek.phparch.com/ ">PHP Tek 2010</a>. For a change however, the purpose of this trip was not to give a talk at <a title="PHP Tek 2010 on Twitter" href="http://search.twitter.com/search?q=tekx">#tekx</a> but to announce the open source release of a little something we&#8217;ve been cooking up for a while.</p>
<p style="text-align: justify;">After flying from Dublin (me) and London (Helgi) finally reached Chicago and met up with the PHP Tek crowd. After discussing details with <a title="Marco Tabini from MTA" href="http://blog.tabini.ca/">Marco Tabini</a>, we organized a little event to announce our long awaited RESTful API Framework <a title="Frapi Open Source API Framework" href="http://getfrapi.com">FRAPI</a>.</p>
<p style="text-align: justify;"><span id="more-954"></span></p>
<p style="text-align: justify;">The party was loud and fun. People chatted, asked a bunch of questions, complained, encouraged us and thanked us. We even turned around and made a live demo with no preparation whatsoever and, believe it or not, there were no bugs during the demo <img src='http://blog.echolibre.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p style="text-align: justify;">The future is looking very bright for FRAPI which has attracted a <a title="FRAPI on Twitter" href="http://search.twitter.com/search?q=frapi">LOT</a> of attention over the past few days and we are looking forward for even more in the coming weeks. Even though there&#8217;s still some work to do in terms of documentation and a few things I would like to see changed, I have to admit that FRAPI is in a somewhat cool place right now with the upcoming *any-cache* compatibility (Which means that it will run on windows &#8212; wincache) will make it even more interesting. Currently FRAPI only supports APC but this is soon going to be fixed giving FRAPI the ability to run on the likes of Windows Azure and any other platform supported by the caching mechanism.</p>
<p style="text-align: justify;">If you feel like trying out FRAPI, you are more than welcomed to visit <a title="Frapi Open Source API Framework" href="http://getfrapi.com">http://getfrapi.com</a> and start right away by either downloading FRAPI or forking us on the spot.</p>
<p style="text-align: justify;">I would like to thank everyone at <a title="PHP Architect MTA Press" href="http://phparch.com">php|architect</a> who have been very helpful and also a big thanks to the sales department in the <a title="Sheraton Express O'Hare" href="http://www.starwoodhotels.com/sheraton/property/overview/index.html?propertyID=40">Sheraton Gateway Suites O&#8217;Hare</a> who have been the most helpful (In fact it may be the most helpful sales team I&#8217;ve come across in many years!)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echolibre.com/2010/05/phptek-2010-frapi-release-party/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Frapi API Tester</title>
		<link>http://blog.echolibre.com/2010/04/frapi-api-tester/</link>
		<comments>http://blog.echolibre.com/2010/04/frapi-api-tester/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 17:04:44 +0000</pubDate>
		<dc:creator>David</dc:creator>
		
		<category><![CDATA[frapi]]></category>

		<category><![CDATA[apigee]]></category>

		<category><![CDATA[chirp]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[tester]]></category>

		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.echolibre.com/?p=928</guid>
		<description><![CDATA[Lately I&#8217;ve noticed that more and more service seem to include API testing in their list of services. For instance this week at Chirp, Twitter announced their development console available on dev.twitter.com which gives you the ability to test the API without really having to write any code just yet.
This feature is also well known [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Lately I&#8217;ve noticed that more and more service seem to include API testing in their list of services. For instance this week at <a title="Chirp Twitter Developer Conference" href="http://chirp.twitter.com">Chirp</a>, Twitter announced their development console available on <a title="Twitter Developers" href="http://dev.twitter.com">dev.twitter.com</a> which gives you the ability to test the API without really having to write any code just yet.</p>
<p style="text-align: justify;">This feature is also well known for people using <a title="HURL Your URL" href="http://hurl.it">Hurl</a> which is a website that you can use to make HTTP requests and test your API responses. Also on OSX there&#8217;s the <a title="OSX HTTP Client Tool" href="http://ditchnet.org/httpclient/">HTTP Client</a> Tool which does more or less the same as the ones above.</p>
<p>Another company that announced this feature this week was <a title="Apigee API analytics" href="http://apigee.com">Apigee</a>:</p>
<blockquote><p>Use the <a title="Apigee API Console" href="http://app.apigee.com/console">API Console</a> to review an API&#8217;s structure, experiment with the endpoint, and review the request and response messages. We&#8217;re launching with support for Twitter APIs and are adding more soon</p></blockquote>
<p style="text-align: justify;">Apigee is basically an analytics tool for your API. It allows you to track requests, users, errors, etc. So for them, implementing the API tester is something that makes sense as they provide statistics for you API, if you notice an error, you should be able to just test the API call and see if you can reproduce from within Apigee.</p>
<p style="text-align: justify;"><span id="more-928"></span>All those companies do really cool things, however now I&#8217;d like to talk about ourselves a bit here. In Frapi we&#8217;ve had a similar feature for quite some time now in order to help our own developers testing and debugging their API. Here&#8217;s a little introductory video on  how to create an action and test it from within Frapi.</p>
<p><object width="500" height="400" data="http://vimeo.com/moogaloop.swf?clip_id=10982778&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash"><param name="align" value="center" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=10982778&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /></object></p>
<p><a href="http://vimeo.com/10982778">Frapi API Tester</a> from <a href="http://vimeo.com/user1282026">David Coallier</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p style="text-align: justify;">Obviously <a title="Frapi Open Source API Framework" href="http://getfrapi.com">Frapi</a> is on the verge of getting released to the public and we are really eager to get it out. That sort of feature is the reason why we built Frapi <img src='http://blog.echolibre.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> To make your lives easier when developing APIs. What do you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.echolibre.com/2010/04/frapi-api-tester/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
