<p dir="auto">Another small patch to increase JSON support for API endpoints.</p>
<p dir="auto">Example: <em><a href="http://localhost:3000/api/0.6/permissions.json" rel="nofollow">http://localhost:3000/api/0.6/permissions.json</a></em> returns:</p>
<div class="highlight highlight-source-json position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"version": "0.6",
"generator": "OpenStreetMap server",
"copyright": "OpenStreetMap and contributors",
"attribution": "http://www.openstreetmap.org/copyright",
"license": "http://opendatacommons.org/licenses/odbl/1-0/",
"permissions": [
"allow_read_prefs",
"allow_read_email"
]
}"><pre>{
<span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>0.6<span class="pl-pds">"</span></span>,
<span class="pl-ent">"generator"</span>: <span class="pl-s"><span class="pl-pds">"</span>OpenStreetMap server<span class="pl-pds">"</span></span>,
<span class="pl-ent">"copyright"</span>: <span class="pl-s"><span class="pl-pds">"</span>OpenStreetMap and contributors<span class="pl-pds">"</span></span>,
<span class="pl-ent">"attribution"</span>: <span class="pl-s"><span class="pl-pds">"</span>http://www.openstreetmap.org/copyright<span class="pl-pds">"</span></span>,
<span class="pl-ent">"license"</span>: <span class="pl-s"><span class="pl-pds">"</span>http://opendatacommons.org/licenses/odbl/1-0/<span class="pl-pds">"</span></span>,
<span class="pl-ent">"permissions"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>allow_read_prefs<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>allow_read_email<span class="pl-pds">"</span></span>
]
}</pre></div>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/3493'>https://github.com/openstreetmap/openstreetmap-website/pull/3493</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/3493/commits/c9e836a6cb070dc28deac3298994ba0118222e91" class="commit-link">c9e836a</a> JSON output added to permissions endpoint</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3493/files">4 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3493/files#diff-d76849254c4029831b9937fe42b80584a783751f4ba52e254ccaad44beca47e0">app/controllers/api/permissions_controller.rb</a>
(6)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3493/files#diff-713cd09ea6bddbf368260c5b35fed41c598c3adce82f52225086d729548f2031">app/views/api/permissions/show.json.jbuilder</a>
(3)
</li>
<li>
<strong>R</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3493/files#diff-23863ab9eecebbccc39edefcb173d635dd1d616fcfd6d388de00dc97757de94b">app/views/api/permissions/show.xml.builder</a>
(0)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/3493/files#diff-9f754279838a5317ec8ed3ecfebfe2b3b409d3464b7aac738290fbac0640d7a6">test/controllers/api/permissions_controller_test.rb</a>
(25)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3493.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/3493.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/3493.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/3493.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3493">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOXGNPO524KICRIMSTU66T27ANCNFSM5QHJNIIQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLP7AGIPI6OXG42JCWLU66T27A5CNFSM5QHJNII2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4RKSTRUQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/3493</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3493",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3493",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>