Everyone knows that the trend is RESTful design. The simplicity of REST
means that if makes it easier to create bigger and more complex object
As a side effect, you have your RESTful routes/URLs, which reflect the
simplicity and consistency of the RESTful design. It is natural to model
your URLs after your objects, object hierarchies instead of actions (the
actions being the HTTP verbs).
However, sometimes there are specific routes that don’t really fit into
RESTful way of doing things but are useful nonetheless. For example:
This url adds a prefix date to the event/events. Besides allowing the
to list all of the events of a specific date, it is also very
Having this additional piece of information in a google search result
sometimes be a timesaver (you can be more certain that it is the event
are searching, since the one you went to also happened on this date).
I don’t know if this date could be re-factored into a resource. The way
doing this is customizing the default events resource RESTful route to
Do you have such custom URLs in your app? Would you mind sharing your
thoughts and experiences?
Thanks in advance,