<p dir="auto">A standard HTTP verb for update action in Rails is PATCH/PUT, but for messages API <a href="https://wiki.openstreetmap.org/wiki/Messaging_API_proposal#Update_read_status_of_a_message" rel="nofollow">it was made POST for some reason</a>. Here I'm adding PATCH/PUT. I'm keeping POST outside of the resources, but we should deprecate it.</p>
<p dir="auto">Also I'm moving the resources to the api namespace. This allows to remove <code class="notranslate">:as</code>.</p>
<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/5410'>https://github.com/openstreetmap/openstreetmap-website/pull/5410</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5410/commits/79c306ad06155549ff6e5929ff20a1149b4862c4" class="commit-link">79c306a</a> Add patch/put api message update</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5410/commits/e89a78fff858d5db07f6959a39dd9655dc46008e" class="commit-link">e89a78f</a> Move api messages resources to api namespace</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5410/files">2 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5410/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
(9)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5410/files#diff-123a7e1bd6121c8c11cbebaa72111f522c2f52e0e29a9b2ce4a49a761ea74356">test/controllers/api/messages_controller_test.rb</a>
(30)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5410.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5410.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5410.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5410.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/5410">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMAC3LUKAEA6MDQDRT2GA2HDAVCNFSM6AAAAABTYSVZWCVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42DKMJSGI3DCNY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMUS7DFV2MZT3KJ7ZD2GA2HDA5CNFSM6AAAAABTYSVZWCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKHHZ7HE.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/5410</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/5410",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5410",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>