Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.23 KB

NlpannotateApi.md

File metadata and controls

57 lines (38 loc) · 1.23 KB

BioLinkApi.NlpannotateApi

All URIs are relative to https://localhost/api

Method HTTP request Description
getAnnotate GET /nlp/annotate/{text} Returns list of matches

getAnnotate

[Association] getAnnotate(text, opts)

Returns list of matches

Example

var BioLinkApi = require('bio_link_api');

var apiInstance = new BioLinkApi.NlpannotateApi();

var text = "text_example"; // String | 

var opts = { 
  'category': ["category_example"] // [String] | E.g. phenotype
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.getAnnotate(text, opts, callback);

Parameters

Name Type Description Notes
text String
category [String] E.g. phenotype [optional]

Return type

[Association]

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json