<p></p>
<p dir="auto">Supporting <code class="notranslate">#</code> is easy -- the consumer just has to URL encode the key and then we have to URL decode. This is (effectively) what my patch currently does (it supports URL decoding). The sticking point has been multiple <code class="notranslate">.</code> in the URL (fixed by not having a <code class="notranslate">(.:format)</code> in the route, and I wasn't able to reproduce outside of our code base).</p>
<p dir="auto">I do have a hack to allow for <code class="notranslate">.fmt</code> on this API call. It pretty much just checks the trailing characters for <code class="notranslate">.json</code> or <code class="notranslate">.xml</code> and then sets the return format. I don't like it, but I'll go ahead and push it.</p>
<p dir="auto">I'm looking into better options, but something, somewhere, is causing issues when I do that. Which I'm trying to fix by stepping through the code.</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/3787#issuecomment-1317626338">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOJYZ3WVZRX3YOGQTLWIU7S7ANCNFSM6AAAAAARZPOMC4">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMQ733ACQASW7NT7SDWIU7S7A5CNFSM6AAAAAARZPOMC6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSORFQ6E.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/3787/c1317626338</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/3787#issuecomment-1317626338",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3787#issuecomment-1317626338",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>