<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>API on mcclain.sh</title><link>http://mcclain.sh/tags/api/</link><description>Recent content in API on mcclain.sh</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 05 Sep 2013 00:00:00 +0000</lastBuildDate><atom:link href="http://mcclain.sh/tags/api/index.xml" rel="self" type="application/rss+xml"/><item><title>Cloud Foundry the API Way</title><link>http://mcclain.sh/posts/cloud-foundry-the-api-way/</link><pubDate>Thu, 05 Sep 2013 00:00:00 +0000</pubDate><guid>http://mcclain.sh/posts/cloud-foundry-the-api-way/</guid><description>&lt;p&gt;This is a topic I&amp;rsquo;ve seen come up a couple times in the last few weeks. It started with &lt;a href="https://twitter.com/drnic" target="_blank" rel="noopener noreffer "&gt;Dr. Nic Williams&lt;/a&gt; when we were discussing &lt;a href="https://github.com/cloudfoundry-community/share-my-cloudfoundry" target="_blank" rel="noopener noreffer "&gt;share-my-cloudfoundry&lt;/a&gt; when he wanted to provide compatibility with Cloud Foundry v1 and v2 in the same application. This situation came up again with a personal project that I will detail later.&lt;/p&gt;
&lt;p&gt;It required a bit of &lt;a href="https://groups.google.com/a/cloudfoundry.org/forum/?fromgroups#!topic/vcap-dev/5G3mWs2e0u4" target="_blank" rel="noopener noreffer "&gt;discussion&lt;/a&gt;, but I finally tracked down the answers. Although the &lt;a href="https://github.com/cloudfoundry/cfoundry" target="_blank" rel="noopener noreffer "&gt;cfoundry gem&lt;/a&gt; states that it is compatible with Cloud Foundry v1 and v2, after some digging, it looks like it&amp;rsquo;s only compatible with v2. To make things a bit more complicated, even though the old cfoundry library was moved to a separate repository, it retained the &amp;ldquo;cfoundry&amp;rdquo; gem name, meaning I could not include both gems in a single Gemfile.&lt;/p&gt;</description></item></channel></rss>