Skip to content

Latest commit

 

History

History
98 lines (64 loc) · 1.97 KB

IndividualApi.md

File metadata and controls

98 lines (64 loc) · 1.97 KB

BioLinkApi.IndividualApi

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

Method HTTP request Description
getIndividual GET /individual/{id} Returns list of matches
getPedigree GET /individual/pedigree/{id} Returns list of matches

getIndividual

[Association] getIndividual(id)

Returns list of matches

Example

var BioLinkApi = require('bio_link_api');

var apiInstance = new BioLinkApi.IndividualApi();

var id = "id_example"; // String | 


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

Parameters

Name Type Description Notes
id String

Return type

[Association]

Authorization

No authorization required

HTTP request headers

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

getPedigree

[Association] getPedigree(id)

Returns list of matches

Example

var BioLinkApi = require('bio_link_api');

var apiInstance = new BioLinkApi.IndividualApi();

var id = "id_example"; // String | 


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

Parameters

Name Type Description Notes
id String

Return type

[Association]

Authorization

No authorization required

HTTP request headers

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