-
Notifications
You must be signed in to change notification settings - Fork 17
Search Deprecated
This is documentation on the Find Data page that launched with the SPARC Portal.
Content lives in two different places, so there are two different endpoints are used to search based on the content type. Both endpoints can handle search queries, pagination, sorting and filtering.
The Blackfynn Discover API utilizes the /discover/search/{searchType}s
endpoint, where searchType
is either dataset
or simulation
Everything else is in contentful, and utilizes the Contentful Delivery API.
Depending on what is selected either in the global search in the top, or which find data page the user is on, determines which API is used.
The only exception to the above is with the organs on the data page. There is a requirement to not show any organs that don't have datasets associated to them. In order to know this, we must use the Contentful Delivery API to get all organs, and then query the Blackfynn Discover API to see if datasets were tagged with that organ.