What would be a (good) way to define:
-
Optional parameters. For example: /articles /articles/2013 /articles/2013/06
- Query parameters, that can also be optional (search, pagination, callback, defining which fields to return being the most common examples): /articles?page=2&per_page=100 /search?q=something&sort=published