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

Control the data passed through the APIs #88

Closed
rouflak opened this issue Oct 12, 2016 · 1 comment
Closed

Control the data passed through the APIs #88

rouflak opened this issue Oct 12, 2016 · 1 comment

Comments

@rouflak
Copy link

rouflak commented Oct 12, 2016

Hi!

I'm stuck with the edition form.

I have an entity which has the following properties:

- id
- name
- services (many to one)

My form is only handling the name property. I'd like this field to be the only one passed through the API and not the id and services properties.

Is there any way to have control on the properties passed through the APIs when using the Edit component?
If no, is it planned?

Thx

@fzaninotto
Copy link
Member

Admin-on-rest will pass all the data you include in the <Edit> component to the rest client. If you want only part of this data to be passed further (to the HTTP client), the best place to put that logic in is a custom rest client.

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