FredHutch / Oncoscape

a web application to apply/develop analysis tools for Molecular and Clinical data
https://oncoscape.sttrcancer.org
MIT License
179 stars 45 forks source link

API not found #450

Open bzip2 opened 6 years ago

bzip2 commented 6 years ago

Hi. I'm trying to use the API calls from your data access instructions but not having success. Have you confirmed that external users can call the API?

Ex. 1:

hello$ GET http://dev.oncoscape.sttrcancer.io/api/gbm_patient_tcga_clinical/?q=&apikey=password
[1] 6142
{"request_path":"\/gbm_patient_tcga_clinical\/","message":"API not found with these values","request_host":["dev.oncoscape.sttrcancer.io"]}
[1]+  Exit 1                  GET http://dev.oncoscape.sttrcancer.io/api/gbm_patient_tcga_clinical/?q=

Ex. 2:

hello$ GET http://dev.oncoscape.sttrcancer.io/api/gbm_patient_tcga_clinical/?q={"gender":"MALE", "race":"WHITE","$fields":["gender","race","patient_ID"],"$skip":5,"$limit":2}&apikey=password
[1] 6156
{"request_path":"\/gbm_patient_tcga_clinical\/","message":"API not found with these values","request_host":["dev.oncoscape.sttrcancer.io"]}
501 Protocol scheme 'race' is not supported
[1]+  Exit 2                  GET http://dev.oncoscape.sttrcancer.io/api/gbm_patient_tcga_clinical/?q={"gender":"MALE", "race":"WHITE","$fields":["gender","race","patient_ID"],"$skip":5,"$limit":2}

I get the same message until I get down to GET http://dev.oncoscape.sttrcancer.io, which returns HTML.