FZJ-INM1-BDA / siibra-api

Apache License 2.0
4 stars 3 forks source link

find objects by name #64

Closed marcenko closed 2 years ago

marcenko commented 2 years ago

At the moment we can access one single atlas/parcellation/space/region by id.

Since siibra-python has the feature of a fuzzy search, we could implement the same feature for siibra-api.

For example:

.../parcellation/<par-id>/region?find=<region-name>

This would search fuzzy by region name and either return a single region or a Bad Request Response if more than one region was found.

xgui3783 commented 2 years ago

hmm, in fact the current parcellation/<parc-id>/region/<region-id> already performs the said fuzzy search (though not explicit in doc/rest pattern)

I would argue that the new endpoint /region?find=<fuzzy-region-name> should return a list of regions that matches the query?

marcenko commented 2 years ago

I actually thought we have the fuzzy search for region only until we have IDs for each region.

But you are right we could also return a list of all found regions. Would make more sence for a find-feature.