-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Milestone
Description
In #4 we posed the idea that a user could use an alias (eg grch38
) to find sequence collections with that alias.
We realized this could be made possible if we do 2 things:
- Update the spec so that the
/list
endpoint MAY respond to a?attr=value
request where theattr
is an array, by treating this as filtering to any seqcols where the the arrayattr
containsvalue
as one of its elements. Previously this wasn't really defined by the spec, but if we define it, then it makes thelist
endpoint a bit more powerful because it doesn't just look for exact matches. - introduce the
aliases
attribute to a collection, with a formal definition (it's an array of human-readable identifiers that could be searched in this manner).
Then you'd just search by saying ?alias=grch38
. This more powerful list method could also be used for other attributes (like, "find all the arrays for which x is listed as one of the contributors", or even "find all the arrays where sequence digest xyz is in the list of sequence digests").
So we decided it could make sense to add this to the spec as a MAY extension for 1.1
The alias
idea is also related to #79