Skip to content

Search Deprecated

Cameron Baney edited this page Apr 26, 2021 · 1 revision

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.

Blackfynn Discover API

Datasets and Simulations

The Blackfynn Discover API utilizes the /discover/search/{searchType}s endpoint, where searchType is either dataset or simulation

Contentful Delivery API

All other content, including Organs and Projects

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.

Organs find data page

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.