Skip to content

Proposed API changes 2014 08

Cody Hinchliff edited this page Aug 26, 2014 · 13 revisions

New API URLs (complete list)

taxomachine:

  • tnrs/contexts
  • tnrs/infercontext
  • tnrs/autocompletequery
  • tnrs/contextquery
  • ott/subtree
  • ott/info
  • ott/deprecatedtaxa
  • ott/taxoninfo
  • ott/flags

treemachine:

  • custom/synthjsonsas
  • custom/taxjsonsas
  • graphoflife/mrca
  • graphoflife/subtree
  • graphoflife/drafttreeinfo
  • graphoflife/ottversion
  • graphoflife/sourcetree
  • graphoflife/drafttree
  • graphoflife/taxoninfo
  • graphoflife/draftchildren
  • import/testnexson (maybe)

oti:

  • indexing/addnexsons
  • indexing/removenexsons
  • queries/allstudies
  • queries/studies
  • queries/trees
  • queries/nodes
  • queries/properties

Proposed changes

taxomachine:

  • TNRS -> tnrs
    • taxomachine/vN/tnrs/contexts
    • getContextForNames -> infercontext
    • autocompleteQuery -> autocompletequery
    • contextQuery -> contextquery
    • getTaxonomyVersion -> (remove)
      • has been replaced by info service in ott plugin
  • OTTServices -> ott
    • subtree -> subtree
      • moved from getJSONs
      • may be useful, change input format to accept a list of ott ids for a pruned subtree or a single ott id for a clade subtree
    • getTaxonomyInfo -> info
    • getDeprecatedTaxa -> deprecatedtaxa
    • getTaxonInfo -> taxoninfo
    • getFlaggedTaxonCount -> flags
  • getJSONs -> (remove)
    • getNodeIdJSONFromName -> (remove)
    • getConflictTaxJsonAltRel -> (remove)
    • subtree -> (move to ott plugin)

treemachine:

  • getSASJsons -> custom
    • getSynthJson -> synthjsonsas
    • getTaxonJson -> taxjsonsas
  • PhylografterUpdater -> (remove?)
    • updateGraphFromPhylografter -> (remove?)
      • I'm pretty sure this is obsolete, need to verify with stephen. if not, move to import plugin
  • GoLS -> graphoflife
    • getSourceTreeIds -> (remove)
    • getDraftTreeMRCAForNodes -> (remove?)
      • I think Joseph has replaced this with getMRCA
    • getTaxonomyMRCAForNodes -> (remove?)
      • Has this also been superseded by getMRCA?
    • getMRCA -> mrca
    • getDraftSubtreeForNodes -> subtree
    • getStudyIngestMessagesForNexSON -> (either remove or move to import plugin)
    • getDraftTreeID -> drafttreeinfo
      • add the info from getSynthesisSources
    • getTaxonomyVersion -> ottversion
    • getSynthesisSourceList -> (remove)
      • add this functionality to drafttreeinfo
    • synthesizeSubtree -> (remove)
      • this initiates a synthesis procedure. not something we want exposed right now
    • getSourceTree -> sourcetree
    • getSyntheticTree -> drafttree
      • we may want to combine this with the getsubtree method...
    • getDraftTreeForottId -> (remove?)
      • combine this with the subtree method?
    • getDraftTreeForNodeIdD -> (remove)
      • combine this with the subtree method
    • getNodeIdForottId -> taxoninfo
    • getDraftTreeChildNodesForNodeID -> draftchildren
  • (new, maybe) -> import
    • getStudyIngestMessagesForNexSON -> testnexson (potentially moved from GoLS)

oti:

  • ConfigurationServices -> (remove - these are unused and not for public use anyway)
    • install OTT -> (remove)
    • connectAllTreesToOTT -> (remove)
  • IndexServices -> indexing (NOTE: these should not be part of the public api...)
    • indexNexsons -> addnexsons
    • unindexNexsons -> removenexsons
  • NexsonServices -> (remove; empty)
  • QueryServices -> queries
    • findAllStudies -> allstudies
    • singlePropertySearchForStudies -> studies
    • singlePropertySearchForTrees -> trees
    • singlePropertySearcgForTreeNodes -> nodes
    • getSearchablePropertiesStudies -> properties
    • getSearchablePropertiesForTrees -> (remove)
      • add info to properties
    • getSearchablePropertiesForTreeNodes -> (remove)
      • add info to properties
Clone this wiki locally