JAL-3860 prototype for highlight species/assembly/chromosome/position
[jalview.git] / src / jalview / rest / API.java
index b13100b..2455914 100644 (file)
@@ -4,8 +4,6 @@ import java.net.BindException;
 import java.util.HashMap;
 import java.util.Map;
 
-import jalview.bin.Cache;
-
 public class API extends RestHandler
 {
   private static final String MY_PATH = "api";
@@ -16,6 +14,8 @@ public class API extends RestHandler
 
   private static Map<String, String> requestMap = new HashMap<>();
 
+  private static Map<String, Object> objectMap = new HashMap<>();
+
   private static API instance = null;
 
   public static API getInstance() throws BindException
@@ -45,16 +45,13 @@ public class API extends RestHandler
     super.init(MY_PATH);
 
     // add endpoints here
-    addEndpoint(new FetchSequenceEndpoint(this));
-    addEndpoint(new OpenAlignmentEndpoint(this));
+    addEndpoint(new FetchSequencesEndpoint(this));
+    addEndpoint(new InputAlignmentEndpoint(this));
     addEndpoint(new HighlightSequenceEndpoint(this));
+    addEndpoint(new SelectSequencesEndpoint(this));
+    addEndpoint(new GetCrossReferencesEndpoint(this));
+    addEndpoint(new HighlightGenomicRangeEndpoint(this));
 
-    Cache.info("REMOVEME setting path to " + MY_PATH);
-    Cache.info("REMOVEME endpoints keys:");
-    for (String key : getEndpoints().keySet())
-    {
-      Cache.info("REMOVEME keyname=" + key);
-    }
     setPath(MY_PATH);
     this.registerHandler();
 
@@ -80,4 +77,9 @@ public class API extends RestHandler
   {
     return requestMap;
   }
+
+  protected static Map<String, Object> getObjectMap()
+  {
+    return objectMap;
+  }
 }