OpenTreeOfLife / ws_wrapper

OpenTree Web-Services Wrapper
1 stars 0 forks source link

Phylogenetic synthesis on demand - example code not working #7

Open EwersAquaGenomics opened 3 years ago

EwersAquaGenomics commented 3 years ago

Hi, I am trying to generate a phylogenetic synthesis on demand. But when I run the example in my command line, I get the following error (bolded): ukzoo-c144110:~ ewers.christine$ curl -X POST https://API_ENDPOINT/v3/tree_of_life/build_tree -d '{"input_collection":"pcart/cnidaria", "root_id": "ott641033"}' curl: (6) Could not resolve host: API_ENDPOINT

I looks as if I need to change APO_ENDPOINT to something else, but what?

Thank you for your help, Christine

mtholder commented 3 years ago

Currently (because this service is still in testing mode), we are just using a spare machine. The subdomain of that machine is ot38. So the first part of the URL should be https://ot38.opentreeoflife.org When the service is better tested we'll put it on the api server.

mtholder commented 3 years ago

I've just edited https://github.com/OpenTreeOfLife/ws_wrapper/blob/synth-on-demand/synth-on-demand.md to make this clearer (I hope). I'll update that page when we move the service to production servers.