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

REST API: add attribute filters for node endpoint default response #3171

Closed
waychal opened this issue Jul 16, 2019 · 1 comment
Closed

REST API: add attribute filters for node endpoint default response #3171

waychal opened this issue Jul 16, 2019 · 1 comment
Milestone

Comments

@waychal
Copy link
Contributor

waychal commented Jul 16, 2019

Currently we have below endpoints:

In REST API, add attribute filter for default endpoint to request none, all or specific attributes for all nodes.

@waychal waychal added this to the v1.0.1 milestone Jul 16, 2019
@elsapassaro
Copy link
Contributor

Fixed in PR #3429.

By default, attributes are not returned in /nodes endpoint. To get the list of all attributes specify attributes=true and to get selected attribute(s) list, use attributes=true and the attributes_filters filter.
The desired attributes have to be provided as a comma-separated list of values.
The attributes_filter filter is used in both /contents/attributes (instead of alist) and /nodes endpoints.

The same happens for extras.

@sphuber sphuber modified the milestones: v1.1.1, v1.0.0 Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants