I have different users who may be logged into a user interface and need to see different views of the same resources. So for example, a family shares a shopping application. When the parent logs in they can see everything in the cart. When the child logs in they can't see certain products in the cart, and for the products they can see they can't see certain attributes (e.g. price).
So from a resource perspective if we want the parent and child to have two different views of the cart, one way to do this would be:
/parent/shoppingcart
and
/child/shoppingcart
Another way would be:
/parent.shoppingcart
and
/child.shoppingcart
What is best practice from an API / REST perspective?
Note: I can't do,
/shoppingcartsummary
and /shoppingcart
because there are even more views than the parent's and the child's.