I use asp.net WebAPI to provide the service.But I found to explore the id of the entity(Resources identity ) is not a good idea.
eg. if you pass your UserProfile ID to get user's profile. because the id is auto incremented in DB, if someone iterates the Ids to get the others' profile, it will make the users' profiles to leak.(maybe you suggest to use GUID, But int type id has better performance)
So I want to encrypt the IDs with time in WebAPI filters. Is there a good demo for this?
Update: don't confused by User demo. If you have products. first you get the products list,then you will get product detail by product id . How to proect product id.