RESTful API - Get last of an element
<p>What's the best practice for getting the last added element (let's say we know that because of a created_at field on the resource).</p>

<p>Should it be a call to the get all with max results on 1 like: </p>

<pre><code>GET ../rest/v1/article?page=0&amp;size=1&amp;order=created_at,desc
</code></pre>

<p>and will return an array of one element</p>

<p>or maybe an "special" call like: </p>

<pre><code>GET ../rest/v1/article/last
</code></pre>

<p>and will return an element.</p>

<p>I am looking for a best practice if there's one pattern for this.</p>

<p>Thanks!</p>