<p>This branch adds the <code>/api/0.6/user/NNNN</code> API call for requesting public information on a specified user in machine readable form. It is based on the existing <code>/api/0.6/user/details</code> call with some extra details added. Example output as follows:</p>

<div class="highlight"><pre><span class="cp"><?xml version="1.0" encoding="UTF-8"?></span>
<span class="nt"><osm</span> <span class="na">version=</span><span class="s">"0.6"</span> <span class="na">generator=</span><span class="s">"OpenStreetMap server"</span><span class="nt">></span>
  <span class="nt"><user</span> <span class="na">id=</span><span class="s">"1"</span> <span class="na">display_name=</span><span class="s">"TomH"</span> <span class="na">account_created=</span><span class="s">"2012-09-19T18:33:34Z"</span><span class="nt">></span>
    <span class="nt"><description></description></span>
    <span class="nt"><contributor-terms</span> <span class="na">agreed=</span><span class="s">"true"</span> <span class="na">pd=</span><span class="s">"false"</span><span class="nt">/></span>
    <span class="nt"><roles></span>
      <span class="nt"><administrator/></span>
    <span class="nt"></roles></span>
    <span class="nt"><changesets</span> <span class="na">count=</span><span class="s">"0"</span><span class="nt">/></span>
    <span class="nt"><traces</span> <span class="na">count=</span><span class="s">"0"</span><span class="nt">/></span>
    <span class="nt"><blocks></span>
      <span class="nt"><received</span> <span class="na">count=</span><span class="s">"0"</span> <span class="na">active=</span><span class="s">"0"</span><span class="nt">/></span>
    <span class="nt"></blocks></span>
  <span class="nt"></user></span>
<span class="nt"></osm></span>
</pre></div>

<p>The extra fields have also been added to the <code>/api/0.6/user/details</code> call, which also retains some extra information (home location and languages) which are hidden fro this public API call.</p>

<hr>

<h4>You can merge this Pull Request by running:</h4>
<pre>  git pull https://github.com/tomhughes/openstreetmap-website userapi</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/99'>https://github.com/openstreetmap/openstreetmap-website/pull/99</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Add a /api/0.6/user/NNNN call to the API</li>
  <li>Add some extra information to user API responses</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li><strong>M</strong> app/controllers/user_controller.rb (31)</li>
  <li><strong>D</strong> app/views/user/api_details.builder (26)</li>
  <li><strong>A</strong> app/views/user/api_read.builder (43)</li>
  <li><strong>M</strong> config/routes.rb (4)</li>
  <li><strong>M</strong> db/structure.sql (28)</li>
  <li><strong>M</strong> test/functional/user_controller_test.rb (28)</li>
</ul>

<h4>Patch Links</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/99.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/99.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/99.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/99.diff</a></li>
</ul>


            <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
              —<br>
              Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/99'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_nKpd0ydtBpG_BJG8viAD1m.gif' height='1' width='1'>