neurobagel / federation-api

REST API for query federation over multiple Neurobagel graph databases
https://federate.neurobagel.org
MIT License
0 stars 0 forks source link

Allow selective `/{data_element_URI}` request based on specified nodes #36

Open alyssadai opened 1 year ago

alyssadai commented 1 year ago

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.

_Originally posted by @surchs in https://github.com/neurobagel/federation-api/pull/30#discussion_r1399631076_