I've seen URIs that support magic ids for the authenticated user like below:
GET /user/me - list my profile
GET /user/me/photos - list my photos
where the ones below use the actual user id
GET /user/742924
GET /user/742924/photos
The problem I see is that the same resource id points to a different resource depending on the authenticated user.
Is this going against any REST principles?
/me/photos
, or/users/me/photos
? Asking because/me
implies user anyway, sousers
inusers/me
might be excessive? Afaiu you suggest another resource for auth user. And OP didn't mention/me
variation in the first place. – Prostration