<p></p>
<p dir="auto">Right, I think we already have all three options in place in different parts of the API:</p>
<ul dir="auto">
<li>Option 1: app/views/api/ways/show.json.jbuilder</li>
<li>Option 2: app/views/api/users/show.json.jbuilder + app/views/api/users/_user.json.jbuilder</li>
<li>Option 3: app/views/api/notes/show.json.jbuilder</li>
</ul>
<p dir="auto">For nodes/ways/relations (single or multiple ones) I deliberately used the same <a href="https://wiki.openstreetmap.org/wiki/OSM_JSON" rel="nofollow">OSM JSON</a> format everywhere, to avoid any special case parsers for single objects.</p>
<p dir="auto">Option 3 for notes follows some GeoJSON format, and seems to be a good fit for that particular use case.</p>
<p dir="auto">Now for single changesets, I believe either option 1 or 2 would be reasonable.</p>

<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/3495#issuecomment-1065871311">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM4CPXWF74YBUCNZ6LU7SB25ANCNFSM5QKQVWOA">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/AAK2OLIQWDZBGNANDRM2CPTU7SB25A5CNFSM5QKQVWOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOH6D6PTY.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/3495/c1065871311</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/3495#issuecomment-1065871311",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3495#issuecomment-1065871311",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>