Register rest field authentication with REST API

It is a bad API design to return different structure based on “external data” not passed in the request itself.

Either construct different API for logged in users and use a different end point for it, or return a “filler” when the user do not have permission to access the data.

(and it is always a bad idea to make modifications to the official rest API as you might create incompatibilities with other users of it, so at least be careful use prefixes etc)