<?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 Bruno Pedro</title><link>https://brunopedro.com/tags/api/</link><description>Recent content in Api on Bruno Pedro</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 08 May 2018 10:00:15 -0700</lastBuildDate><atom:link href="https://brunopedro.com/tags/api/index.xml" rel="self" type="application/rss+xml"/><item><title>Bridging the Gap Between APIs and Customers</title><link>https://brunopedro.com/2013/06/03/bridging-gap-api-customer/</link><pubDate>Mon, 03 Jun 2013 11:15:59 +0000</pubDate><guid>https://brunopedro.com/2013/06/03/bridging-gap-api-customer/</guid><description>&lt;p>I recently gave a talk at the &lt;a href="http://mediterranea.apidays.io/" title="APIdays Mediterranea conference">APIdays Mediterranea&lt;/a> in &lt;a href="http://en.wikipedia.org/wiki/Madrid" title="Madrid">Madrid&lt;/a> where I started with a question: &amp;ldquo;&lt;strong>Who are your customers?&lt;/strong>&amp;rdquo;.&lt;/p>
&lt;p>The single, most important thing you want to understand about your API is how you can generate revenue from it. It all depends on who your customers are and how they can obtain value through your API.&lt;/p>
&lt;p>What customers need is represented in one of the slides as the &amp;ldquo;&lt;a href="http://apiux.com/2013/05/29/api-hierarchy-needs/" title="API Hierarchy of Needs">API Hierarchy of Needs&lt;/a>&amp;rdquo;, an adaptation of &lt;a href="http://en.wikipedia.org/wiki/Maslow%27s_hierarchy_of_needs" title="Maslow's Hierachy of Needs">Maslow&amp;rsquo;s Hierarchy of Needs&lt;/a> to the context of APIs from a customer point of view.&lt;/p></description></item><item><title>Still using HTTP Basic Auth?</title><link>https://brunopedro.com/2013/04/18/still-using-http-basic-auth/</link><pubDate>Thu, 18 Apr 2013 15:22:17 +0000</pubDate><guid>https://brunopedro.com/2013/04/18/still-using-http-basic-auth/</guid><description>&lt;p>Great article by &lt;a href="http://swaggadocio.com/" title="Steve Graham">Steve Graham&lt;/a> about why you should &lt;strong>stop using &lt;a href="http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol" title="Hypertext Transfer Protocol">HTTP&lt;/a> Basic Auth&lt;/strong> immediately!&lt;/p>
&lt;blockquote>
&lt;p>As well as being tremendously simple, HTTP Basic by itself is also tremendously insecure, i.e. it is implemented by simply &lt;a href="http://en.wikipedia.org/wiki/Base64" title="Base64">Base64&lt;/a> encoding the username and password concatenated with a colon &amp;ldquo;:&amp;rdquo; character. It then follows that HTTP Basic should only be used, if at all, over securely encrypted connections.&lt;/p>
&lt;/blockquote>
&lt;p>Original article: &lt;a href="http://swaggadocio.com/post/48223179207/why-the-hell-does-your-api-still-use-http-basic-auth" title="WHY THE HELL DOES YOUR API STILL USE HTTP BASIC AUTH?">WHY THE HELL DOES YOUR API STILL USE HTTP BASIC AUTH?&lt;/a>&lt;/p></description></item><item><title>Who’s using your API?</title><link>https://brunopedro.com/2013/03/11/whos-using-your-api/</link><pubDate>Mon, 11 Mar 2013 14:13:58 +0000</pubDate><guid>https://brunopedro.com/2013/03/11/whos-using-your-api/</guid><description>&lt;p>&amp;ldquo;Who&amp;rsquo;s using your API&amp;rdquo; was the title of my presentation at the &lt;a href="http://www.apistrategyconference.com/">API Strategy &amp;amp; Practice Conference&lt;/a> that happened on February 21 and 22, 2013 in New York City.&lt;/p>
&lt;p>One of the conference takeaways was the concern that almost everybody had with their customers. Almost everyone I talked with was in one way or another worried about how the API distribution model is affecting the way their customers interact with their app.&lt;/p></description></item><item><title>Writing great documentation</title><link>https://brunopedro.com/2012/11/27/writing-great-documentation/</link><pubDate>Tue, 27 Nov 2012 18:09:35 +0000</pubDate><guid>https://brunopedro.com/2012/11/27/writing-great-documentation/</guid><description>&lt;p>&lt;a href="http://jacobian.org/writing/great-documentation/" title="Writing great documentation">Writing great documentation&lt;/a>&lt;/p>
&lt;blockquote>
&lt;p>This advice will mostly be targeted towards those documenting libraries or frameworks intended for use by other developers, but much of it probably applies to any for of technical documentation.&lt;/p>
&lt;/blockquote></description></item><item><title>To REST or not to REST</title><link>https://brunopedro.com/2009/07/20/to-rest-or-not-to-rest/</link><pubDate>Mon, 20 Jul 2009 08:41:51 +0000</pubDate><guid>https://brunopedro.com/2009/07/20/to-rest-or-not-to-rest/</guid><description>&lt;p>Yesterday &lt;a href="http://twitter.com/esjewett" title="esjewett on twitter">@esjewett&lt;/a> &lt;a href="http://twitter.com/esjewett/status/2723828400">pointed out&lt;/a> that &lt;a href="http://tarpipe.com/">tarpipe&lt;/a>&amp;rsquo;s API 2.0 might not be considered RESTful. Quoting the previously written article &amp;ldquo;&lt;a href="http://www.esjewett.com/blog/a-restful-esme-api">A RESTful ESME API&lt;/a>&amp;rdquo;:&lt;/p>
&lt;blockquote>
&lt;p>REST is often seen as an alternative to RPC APIs, or &amp;ldquo;Remote Procedure Call&amp;rdquo; APIs. At root, the difference as described by Wikipedia is that RPC is about telling an application to do something while REST is about changing the state of the resources of an application.&lt;/p>
&lt;/blockquote>
&lt;span class="entry-published">
 &lt;span class="entry-author author vcard">
 &lt;span class="fn n">&lt;a href="http://www.theamazingrando.com/">Paul Sadauskas&lt;/a>, on &lt;a href="http://www.theamazingrando.com/blog/?p=107">another article&lt;/a> about the same subject, adds some rules that your API &lt;strong>should not&lt;/strong> follow:&lt;/span>
&lt;/span>
&lt;/span>
&lt;blockquote>
&lt;ol>
&lt;li>Clients have to read documentation to know the locations of top-level resources.&lt;/li>
&lt;li>Clients have to concatenate strings to get to the next resource.&lt;/li>
&lt;li>You have an &amp;ldquo;API/Key/Token&amp;rdquo; in a header or a url.&lt;/li>
&lt;li>You have a version string in a url.&lt;/li>
&lt;/ol>
&lt;/blockquote>
&lt;p>All this made me think about possible changes to become RESTful. Things seem to be easy when you&amp;rsquo;re offering operations to resources you own or control. When you&amp;rsquo;re dealing with processes that&amp;rsquo;s a whole different story. As &lt;a href="http://twitter.com/esjewett" title="esjewett on twitter">@esjewett&lt;/a> best &lt;a href="http://twitter.com/esjewett/status/2724662905">puts it&lt;/a>:&lt;/p></description></item><item><title>Should twitter have its own data storage?</title><link>https://brunopedro.com/2009/04/21/should-twitter-have-its-own-data-storage/</link><pubDate>Tue, 21 Apr 2009 12:34:56 +0000</pubDate><guid>https://brunopedro.com/2009/04/21/should-twitter-have-its-own-data-storage/</guid><description>&lt;p>Now that twitter &lt;a href="http://oauth.net/" title="OAuth">OAuth&lt;/a> &lt;a href="http://apiwiki.twitter.com/OAuth-FAQ">feature&lt;/a> is in public beta, some people argue that twitter should also provide a data storage facility through their &lt;a href="http://apiwiki.twitter.com/">API&lt;/a>. This would allow developers to add payloads to different twitter objects but would create another &lt;a href="http://en.wikipedia.org/wiki/Information_silo">information silo&lt;/a>, instead of leveraging existing data storage providers.&lt;/p>
&lt;p>I agree with Kevin Marks when &lt;a href="http://www.scripting.com/stories/2009/04/20/twitterAndOauthInteresting.html#comment-8462416">he asks&lt;/a> &amp;ldquo;Why should the storage and the event stream come from the same provider?&amp;rdquo;.&lt;/p>
&lt;p>Quoting Dave Winer&amp;rsquo;s article &amp;ldquo;&lt;a href="http://www.scripting.com/stories/2009/04/20/twitterAndOauthInteresting.html#disqus_thread">Twitter and OAuth, interesting brew&lt;/a>&amp;rdquo;:&lt;/p></description></item></channel></rss>