Suppose I have a weblog application with RESTful resources accessible
at the following URLs:
As implemented the semantics of /posts and /categories/1/posts are
such that they show “current” posts, with current defined to be a
rolling window of a certain duration.
My question is this: what do you think is the best way to represent
the archives of older posts as RESTful resources?
We could do this:
or, undoubtedly, others. What do you think is the most defensible
Note: if you don’t like the idea of having GET /posts return only
“current” posts then you can perfectly well invert my question. Let
GET /posts retrieve the full set of all posts known to the system.
What then is a good RESTful representation that limits results to
Thanks in advance for your thoughts,