Returning role based content in Spring Rest Controller

When implementing a rest backend, you may be looking for a way to hide the variables of an entity based on the logged in user’s role. Here’s a sample entity. Movie It has id, year, length, title, subject, actor, actress, director variables. And in my application, I have two user roles which are admin and […]