-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task 3 - API - add a route to list species #295
Comments
Confirming that by "currently annotated" you mean "at least one go-cam exists that contains a gene from this species". yes? |
e.g. :6800/taxa/ returns {"taxa":["NCBITaxon:9606","NCBITaxon:7955","NCBITaxon:6239","NCBITaxon:559292"]} note its a different root from /search/ its /taxa/
Correct. We only want the taxon that have been annotated at least once in a model / go cam |
The route you provided looks good, could you however provide also the label for each taxon ? Current response:
Desired:
The idea is that @tmushayahama doesn't need to do a look up to a third party ressource to get that information and display it to the users. |
yes @lpalbou the above is correct @goodb will need taxon name to display Endpointapi/taxa Parameters
ReturnA list of Species<taxon_id, taxon_name> and each item has
|
{ "taxa": [ { "id": "NCBITaxon:559292", "label": "Saccharomyces cerevisiae S288C" }, { "id": "NCBITaxon:7955", "label": "Danio rerio" }, { "id": "NCBITaxon:9606", "label": "Homo sapiens" }, { "id": "NCBITaxon:6239", "label": "Caenorhabditis elegans" } ] }
@goodb lovely, thanx |
@goodb are we using http://noctua-dev.berkeleybop.org:6800/taxa/ as a permanent url with hard-coded port 6800 in it? Also, CORS is not enabled on this endpoint, so I am not able to use it. I will go ahead and reopen the issue |
Aghh, @goodb my apologies, I just realized eventually, the api will be at http://barista-dev.berkeleybop.org/taxa when dev updated and 6800 was a test server. correct? |
@tmushayahama No, there should be no port exposures on production or dev. Whenever somebody is messing around locally, that's something that may happen--it's important to contextualize when somebody shares a URL. |
Task requirement from Noctua Landing Page Project
Create a route to list the species currently annotated in the repository.
The text was updated successfully, but these errors were encountered: