Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm not sure where your premise is coming from? It looks like an artificial example, which makes it hard to comment on.</p> <p>A better comparison would be something like:</p> <pre><code>http://MySite.com/Project/24/Members/Edit </code></pre> <p>As opposed to:</p> <pre><code>http://MySite.com/Projects.aspx?id=24&amp;section=Members&amp;action=Edit </code></pre> <p>Where, among other things, the hierarchy of entities is immediately obvious from the first example (ie, a Project contains Members). It also suggests that you can use other URLs that contain similar structures to the first (ie, <code>/Projects/24</code> and <code>/Projects/24/Members</code>), so in that sense it's more concise.</p> <p>If it comes down to actions that have a variable number of parameters, such as searching, then it's totally fine to use URL parameters as this will give you more flexibility, eg:</p> <pre><code>http://MySite.com/Projects/Search?name=KillerApp&amp;type=NET </code></pre> <p>You could construct a URL using the first style, but you don't really gain anything, and managing the route could add unnecessary overhead:</p> <pre><code>http://MySite.com/Projects/Search/name/KillerApp/type/NET </code></pre> <p>I would argue that this (or any similar construction, eg if you removed the param names) suffers from an artificial hierarchy - the action in this case is really Search, and everything else is just a parameter of the Search, so it's in the same hierarchy, not some "sub" hierarchy.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload