Registry is an abstraction of connection between the client and the intermine registry (http://registry.intermine.org/service/) RESTful API. It provides the required functionality to access public endpoints of the registry easily, along with providing required error handling.
const registry = new Registry();
registry.fetchMines(["yeast"], ["dev"]).then(response => {
console.log(response.instances);
// Do something with the response
});
registry.fetchInstance("flymine").then(instance => {
console.log(instance);
// Do something with the instance
});
registry.fetchNamespace("www.flymine.org").then(namespace => {
console.log(namespace);
// Do something with the namespace obtained
});