Skip to content

Instantly share code, notes, and snippets.

@jimallman
Created December 9, 2013 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimallman/f4efe7eee881df073ac8 to your computer and use it in GitHub Desktop.
Save jimallman/f4efe7eee881df073ac8 to your computer and use it in GitHub Desktop.
Useful queries for oti server
Show all oti services and methods:
curl http://dev.opentreeoflife.org/oti/
More detail about each service:
curl -v http://dev.opentreeoflife.org/oti/ext/QueryServices
curl -v http://dev.opentreeoflife.org/oti/ext/IndexServices
@jimallman
Copy link
Author

Fetch searchable properties for each type (adapted from Cody's examples in the oti README):

curl -X POST http://dev.opentreeoflife.org/oti/ext/QueryServices/graphdb/getSearchablePropertiesForStudies

curl -X POST http://dev.opentreeoflife.org/oti/ext/QueryServices/graphdb/getSearchablePropertiesForTrees

curl -X POST http://dev.opentreeoflife.org/oti/ext/QueryServices/graphdb/getSearchablePropertiesForTreeNodes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment