Currently, a request to /attributes/{data_element_URI} to get all the instances of a class will always go out to all known nodes.
Depending on who/what we envision using this endpoint (right now, only the query tool, to populate dropdown options?), we may want to restrict this by adding a query parameter for a selected subset of nodes, similar to the /query/ endpoint, e.g.:
node_urls : list[str]
List of Neurobagel nodes to send the query to.
Currently, a request to
/attributes/{data_element_URI}
to get all the instances of a class will always go out to all known nodes.Depending on who/what we envision using this endpoint (right now, only the query tool, to populate dropdown options?), we may want to restrict this by adding a query parameter for a selected subset of nodes, similar to the
/query/
endpoint, e.g.:_Originally posted by @surchs in https://github.com/neurobagel/federation-api/pull/30#discussion_r1399631076_