# REST URI questions

**URL:** <https://www.ruby-forum.com/t/rest-uri-questions/181171>\
**Category:** Rails\
**Created:** [January 6, 2010, 8:43pm UTC](https://www.ruby-forum.com/t/rest-uri-questions/181171 "2010-01-06T20:43:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeonS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Post date:** [January 6, 2010, 8:43pm UTC](https://www.ruby-forum.com/t/rest-uri-questions/181171/1 "2010-01-06T20:43:12Z")

</div>

Hi,

I stuck by creating the URIs for my Rails Application.  
Let me explain my app: The User has Tasks , which are organized as a  
Nested\_Set.  
So with the URI “domain/tasks” the root tasks of the user are shown.  
Now i want to show all Tasks (the whole tree). What’s the best  
practice doing this?  
My ideas are “domain/alltasks” as an own resource, but there will be  
only one method (index) in the resource  
or “domain/tasks;all” , but i think this vetoes against the REST  
rules.

So what do you think?

---

<div class="post-metadata">

**Author:** ![LeonS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/c77e96/32.png) [@LeonS](https://www.ruby-forum.com/u/LeonS)\
**Post date:** [January 6, 2010, 10:15pm UTC](https://www.ruby-forum.com/t/rest-uri-questions/181171/2 "2010-01-06T22:15:08Z")

</div>

2010/1/6 LeonS [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> or “domain/tasks;all” , but i think this vetoes against the REST  
> rules.

If I understand correctly you require two different view modes for the  
index action. In this case I would vote for using domain/tasks for  
both with a parameter (optional) for the mode. I do not think this is  
unrestful.

Colin
