You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to have annotation support? That would make it a lot easier to write the relationship mapping, you could simply do it in your doctrine entities.
Perhaps introduce a new annotation to determine which columns should be exposed via the API, so that we don't accidentally blurb out sensitive information (like passwords).
Activity
kafoso commentedon Apr 6, 2017
Agreed.
Perhaps introduce a new annotation to determine which columns should be exposed via the API, so that we don't accidentally blurb out sensitive information (like passwords).
For instance
@ApiExposable
or@ClientExposable
.Example entity:
(Disclaimer: Passwords should never be in any
User
table directly, but that's another talk and this is just a thought-up example.)In the above example, only columns
id
andusername
will be exposed when the entity is JSON serialized.On a related note: The class metadata can be used to automatically find
@Id
columns. As such:Toilal commentedon Apr 21, 2017
It should just work without annotation, so it would be better with
@ApiHide
annotation.