How to retrieve objects not with all fields
For example, if I have a simple model:
User: login(String), email(String), password(String)
If I send a GET request, I'd get only login and email.
But I want this: if I send a GET request, I would get only login field. In other words, how I can hide email field and get it if only that authenticated user send a request