# Making this restfull

**URL:** <https://www.ruby-forum.com/t/making-this-restfull/118845>\
**Category:** Rails\
**Created:** [October 31, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/making-this-restfull/118845 "2007-10-31T15:54:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![remcoh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/c37758/32.png) [@remcoh](https://www.ruby-forum.com/u/remcoh)\
**Post date:** [October 31, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/making-this-restfull/118845/1 "2007-10-31T15:54:19Z")

</div>

Hi, i am having great difficulties making my app restfull.

this is the case:  
i have organisations and organisationtypes  
all organisations belong to a certain type.  
the organisationtypes are not pre-determined, so making a controller for  
each organisationtype is not possible

what would be the best way to get a list of organisations of a certain  
type, lets say customers?

is the url below considered restfull?  
/organisations?type=customer

or should I make an extra controller like organisationtypelists and do:

/organisationtypelist/customer

in that case i would end up with three controllers: organisations,  
organisationtypes and organisationstypelists

or are there better ways?

i see a lot of different opinions on this, so i don’t know what is best
