<p dir="auto">Creates nested resources instead of the following actions: <code class="notranslate">ways_for_node</code>, <code class="notranslate">relations_for_node</code>, <code class="notranslate">relations_for_way</code>, <code class="notranslate">relations_for_relation</code>. After that there's no nonstandard actions in api element controllers for current versions of elements.</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/5626'>https://github.com/openstreetmap/openstreetmap-website/pull/5626</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/commits/889cb64e1a330d1bf8c9cfdc0c35b350d015438d" class="commit-link">889cb64</a>  Declare api node ways as nested resources</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/commits/d7602ccd6e1ed6621c6a03ff60a7838f37ce5cd7" class="commit-link">d7602cc</a>  Declare api node relations as nested resources</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/commits/56a0543a68849949e8250fb00e8ac168e88a65e3" class="commit-link">56a0543</a>  Declare api way relations as nested resources</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/commits/cefaba5a3d1e23f83057a0a71997ab09f585a4e4" class="commit-link">cefaba5</a>  Declare api relation relations as nested resources</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/commits/2fa8a5ac9f62998b55dd59033c67d90180261d35" class="commit-link">2fa8a5a</a>  Clean up after creating nested relation resources</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/commits/eb1ae8eebdf08b0be1e6f4d61a22496d293c294b" class="commit-link">eb1ae8e</a>  Remove unnecessary RuboCop exclusions</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files">31 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-4f894049af3375c2bd4e608f546f8d4a0eed95464efcdea850993200db9fef5c">.rubocop.yml</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-341a1cf4f83cf00816b397c262181cd7b229f1c0e9210ba57dcef3f9609c1b74">app/abilities/api_ability.rb</a>
    (4)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-d0c415c93927717bf92fd6ece85b5cc01c84f55b09f91d45cc551c240f3e3e5e">app/controllers/api/nodes/relations_controller.rb</a>
    (25)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-ecbf28e16d58d55c7b9a4df33d04401e38b1828b2f728087917042fb76338556">app/controllers/api/nodes/ways_controller.rb</a>
    (25)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-5f2d76d57a466f17519491f3061b6c6e5219538f115abc653ee6543ac0819b24">app/controllers/api/relations/relations_controller.rb</a>
    (25)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-49b8b506dea5e046c47e71134ed6d1c4ca794559572895c26b1df469ceda868d">app/controllers/api/relations_controller.rb</a>
    (30)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-84fd18c1f9b0f3659dc02bf624c9e0928260921d92ebe3da82993a070e328088">app/controllers/api/ways/relations_controller.rb</a>
    (25)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-eb50706672183bce46654d5a373c3df75906a65a3ae5055a16ba0d8d2005ca37">app/controllers/api/ways_controller.rb</a>
    (16)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-e92783503109b3f3f15df78110ed878e4a69db1ade2856c2a4eb0c63ba37074c">app/views/api/nodes/relations/index.json.jbuilder</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-65c4b2d3fb938ae7f257c3b459cf88b38877b145953aac14a05cbbc91b0f6034">app/views/api/nodes/relations/index.xml.builder</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-0c2085f122dc251c8960e24547371893e90fd104c25b80d0759a1859274a6922">app/views/api/nodes/ways/index.json.jbuilder</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-51962f941a35f429748033be933998e3f474c0f3b9afd779553bf11f43ea8736">app/views/api/nodes/ways/index.xml.builder</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-60a8fcd8e2aa63d3a6f7816d1d9b5be53421d99803a4bf3ae6b43b19dd1be177">app/views/api/relations/relations/index.json.jbuilder</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-8c99c83149cced24630831292482b838bd18ede17308921df834a907e0196358">app/views/api/relations/relations/index.xml.builder</a>
    (5)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-db046b6f74778a77a10646d95e18f3366327228cd2a588417532490cb98e715b">app/views/api/relations/relations_for_node.json.jbuilder</a>
    (5)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-4eff52d34208a4be9206d9dd53834c7b2c998d0eddcf902b07b55ec236415ed8">app/views/api/relations/relations_for_node.xml.builder</a>
    (5)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-071be4858189e91357c019c3ccb0ee3d4ac894e299282093c0d1087e15ab673d">app/views/api/relations/relations_for_relation.json.jbuilder</a>
    (5)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-e4a858b2f278f32fa020de10138919e2bffedd80c18682eea1c1dc6d5db97b17">app/views/api/relations/relations_for_relation.xml.builder</a>
    (5)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-9f7de074e9d1743587e9189b952a7adffcf12ff44177dc03d5d0ee0b3e223afc">app/views/api/relations/relations_for_way.json.jbuilder</a>
    (5)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-deaf405e4977e9b12d9b4d54c28aa3e231313b660774733e19fca87b5c1d4873">app/views/api/relations/relations_for_way.xml.builder</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-1b9192e489838dc2bd3c8e96823337d58a7c35e0a6c35d2766d30cb1506fec27">app/views/api/ways/relations/index.json.jbuilder</a>
    (5)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-1f85b5d6e0cccb97c15ea10ed7872007a3996ccca321165c4b1c454fa335d5af">app/views/api/ways/relations/index.xml.builder</a>
    (5)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-c44f8b3b13969dfb28d62657f0a476a9cda398b31a561b352cd4d541a4088d9f">app/views/api/ways/ways_for_node.json.jbuilder</a>
    (5)
  </li>
  <li>
    <strong>D</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-8bad6039d7b58622c342d97a426ec330eec072584dff30af3c0304f034eb8651">app/views/api/ways/ways_for_node.xml.builder</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-959bc9abc46a55332bb64d5155a79323afa75a50ec1a2137ddd22d926f62c6c5">config/routes.rb</a>
    (17)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-426ddeb3ed7e91e362a047a62d17d1826e1791411f3aac03f1cf1eedae744a79">test/controllers/api/nodes/relations_controller_test.rb</a>
    (75)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-24f9127a09ebc1163010598f2d54903e43e1fff6e9a3c89d7721d931665e7dde">test/controllers/api/nodes/ways_controller_test.rb</a>
    (72)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-95a3f758938dc33a9ff305c9437603a28d7b96ef20fbcfad149a7b17415c2a9d">test/controllers/api/relations/relations_controller_test.rb</a>
    (69)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-da8c6d0ce9e50a5d0d4517cb17a60cc0df2f286b573ea8132fd903ad8c227237">test/controllers/api/relations_controller_test.rb</a>
    (109)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-c4cd564f542dec5a28d964d00a9f536c3755a13d4d31afaeb250753565148199">test/controllers/api/ways/relations_controller_test.rb</a>
    (69)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5626/files#diff-ffae22d15753b266411f4613c7a78242cfd5a5ab95aad3484ce9728179a76334">test/controllers/api/ways_controller_test.rb</a>
    (36)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5626.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5626.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5626.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5626.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/5626">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLKPMP6UDANQ3P6SUYD2ONTLPAVCNFSM6AAAAABWTT2RSSVHI2DSMVQWIX3LMV43ASLTON2WKOZSHAZTKNRSGE4TSNI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLEDJCH5KS7F3BX4BD2ONTLPA5CNFSM6AAAAABWTT2RSSWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKSBBINM.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/5626</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/5626",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5626",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>