All URIs are relative to https://localhost/api
Method | HTTP request | Description |
---|---|---|
getPrefixCollection | GET /identifier/prefixes/ | Returns list of prefixes |
getPrefixCollection_0 | GET /identifier/prefixes/contract/{uri} | Returns contracted URI |
getPrefixCollection_1 | GET /identifier/prefixes/expand/{id} | Returns expanded URI |
getPrefixCollection()
Returns list of prefixes
var BioLinkApi = require('bio_link_api');
var apiInstance = new BioLinkApi.IdentifierprefixesApi();
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getPrefixCollection(callback);
This endpoint does not need any parameter.
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
getPrefixCollection_0(uri)
Returns contracted URI
var BioLinkApi = require('bio_link_api');
var apiInstance = new BioLinkApi.IdentifierprefixesApi();
var uri = "uri_example"; // String | URI of entity to be contracted to identifier/CURIE, e.g \"http://www.informatics.jax.org/accession/MGI:1\"
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getPrefixCollection_0(uri, callback);
Name | Type | Description | Notes |
---|---|---|---|
uri | String | URI of entity to be contracted to identifier/CURIE, e.g "http://www.informatics.jax.org/accession/MGI:1\" |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
getPrefixCollection_1(id)
Returns expanded URI
var BioLinkApi = require('bio_link_api');
var apiInstance = new BioLinkApi.IdentifierprefixesApi();
var id = "id_example"; // String | ID of entity to be contracted to URI, e.g \"MGI:1\"
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.getPrefixCollection_1(id, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of entity to be contracted to URI, e.g "MGI:1" |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json