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

Add a new attribute to PiccoloCRUD's schema called fields #110

Closed
dantownsend opened this issue Nov 30, 2021 · 1 comment · Fixed by #114
Closed

Add a new attribute to PiccoloCRUD's schema called fields #110

dantownsend opened this issue Nov 30, 2021 · 1 comment · Fixed by #114
Labels
enhancement New feature or request

Comments

@dantownsend
Copy link
Member

We now have the powerful visible_fields filter in PiccoloCRUD.

It would be nice if a consumer of the API could visit the schema endpoint, and see which fields are available (this would include fields in related tables).

For example:

{
    ...
    "fields": ["id", "name", "director.name", "director.id"],
    ...
}

So they can know which fields they can include in the GET param:

/?__visible_fields=name,director.name
@dantownsend dantownsend added the enhancement New feature or request label Nov 30, 2021
@dantownsend dantownsend added this to To do in Enhancements via automation Nov 30, 2021
@dantownsend dantownsend linked a pull request Dec 9, 2021 that will close this issue
@dantownsend
Copy link
Member Author

Fixed by #114

@dantownsend dantownsend moved this from To do to Done in Enhancements Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant