I've read some things about hashing the user's ID (DB Primary Key) and keeping it a secret, but I can't really see why.
I'm creating a REST API with which you can retrieve resources from a certain user. Depending on the logged in user, he/she will receive public resources and, if authorized, private resources.
Is it bad to do something like this:
.../resources?user_id=17
Thanks