Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 1014 Bytes

Registry.md

File metadata and controls

33 lines (29 loc) · 1014 Bytes

REGISTRY

INTRODUCTION

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.

USAGE

Create a new registry adapter

const registry = new Registry();

Fetch all 'dev' mines containing 'yeast'

registry.fetchMines(["yeast"], ["dev"]).then(response => {
  console.log(response.instances);
  // Do something with the response
});

Fetch information about an instance given its id, name or namespace

registry.fetchInstance("flymine").then(instance => {
  console.log(instance);
  // Do something with the instance
});

Fetch a namespace associated with a given url

registry.fetchNamespace("www.flymine.org").then(namespace => {
  console.log(namespace);
  // Do something with the namespace obtained
});