I'm using an EntitySetController in my WebAPI. I am not using EF, I'm intercepting the queryoptions and retrieving the data from the backend using our custom DAL.
Basic authentication is used on the service. Users have default views on the entities that restrict the fields they have access to. I can control loading only the required fields from the back end via the code I have in place. However the EntitySetController will return JSON for the full entity including lots of NULL data for fields that haven't been loaded.
Is there a way of controlling which fields are returned? Much like the way $select works.