Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are there any way to select entity fields dinamically? #496

Closed
xserrat opened this issue Nov 26, 2015 · 2 comments
Closed

Are there any way to select entity fields dinamically? #496

xserrat opened this issue Nov 26, 2015 · 2 comments

Comments

@xserrat
Copy link

xserrat commented Nov 26, 2015

Hi,

I'm using JMSSerializer in order to create an API REST. For each API route you can select which fields you want to display in the response through query string parameters, for example:

Route /users/123?fields=name,surname,age

{
    "name": "Mark",
    "surname": "Spencer",
    "age": "12"
}

So, my question is about how can I choose entity fields dinamically?

Thanks,

@goetas
Copy link
Collaborator

goetas commented Mar 15, 2017

possible with schmittjoh/serializer#673

@goetas goetas closed this as completed Mar 15, 2017
@xserrat
Copy link
Author

xserrat commented Mar 15, 2017

Thank you so much @goetas ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants