Consider a simple photo storage service as an API. Users can only interact with the API if they’ve got an account. Let’s say authorization happens over HTTP Basic.
Given that, would you use URIs like /photos
and /photos/{id}
(as a
photo list and photo detail resource, respectively)? What’s weird about
those URIs is that my /photos
is a different list of photos than
your /photos
– in other words, the resource represented depends on
the information in the Authorization
header.