The parameters in the request should be the same as the gene search endpoint and return an array of strings.
Suggestion: /json/gene-search/cell-types?
Of course, if the three other requests are merged into a single endpoint feel free to change the URL to something sensible.
Workflow:
[ ] Get a list of cell IDs from the DB
[ ] Get the cell types from Solr (you can use the ctw_cell_type field; the JSON facet API is going to be your best friend in this task.
This endpoint will supersede the Inferred cell types - ontology labels filtering drop-down in the gene search component. We want to move away from “inferred” and provide more options to the user.
The parameters in the request should be the same as the gene search endpoint and return an array of strings.
Suggestion:
/json/gene-search/cell-types?
Of course, if the three other requests are merged into a single endpoint feel free to change the URL to something sensible.
Workflow:
[ ] Get a list of cell IDs from the DB
[ ] Get the cell types from Solr (you can use the ctw_cell_type field; the JSON facet API is going to be your best friend in this task.
This endpoint will supersede the Inferred cell types - ontology labels filtering drop-down in the gene search component. We want to move away from “inferred” and provide more options to the user.